4 ms·
Both ORM for OLTP SQL for OLAP Expressed nearby to each other when there is shared business rules, for maintenance reasons: public static String PREDICA
by BenoitP 9y ago
Both
ORM for OLTP
SQL for OLAP
Expressed nearby to each other when there is shared business rules, for maintenance reasons:
public static String PREDICATE_NO_GUMMY_BEARS = "user_preferred_candy <> 'gummy bears'";
public static Predicate noGummyBears(Root<User> user, CriteriaBuilder cb) {
return cb.notEqual(user.get("preferredCandy"), "gummy bears");
}