Hello everybody,
i need to model a qualified relation between objetcs.
Say there exist classes A and B, and a fuzzy relation between those, say the 'is like' relation, so it will be an intermediate table to persist the values...
tables:
A 'is like' B
----- ------------ --------
4,'a' 4, 1, 0.3 1, 'b'
is there a way to model this with hibernate in a way to use something like this:
a.getBAbove(0.7) ; //which returns a collection of Bs with degree > 0.7
i mean, i wouldn't like to declare a class named AIsLikeB to access those values.
i hope i explain myself clear, i would deeply appreciate any help.
regards Gerardo
|