Hi, I'm currently using the JGraphT library to load Records and have them in a Tree as Vertices and ForeignKeys as edges. Unfortunately, because equals() and hashCode() are computed with the values of the fields and the Records are mutable entities, it is not possible to put Records in Sets without breaking the contract of Set. (and JGraphT uses Sets for its implementation, eg. the set of Vertices).
Of course, I could store AtomicReferences of my Records, but it is a bit inconvenient. I could also use Immutable Beans, but our application is (unfortunately) built on mutable structures. Does anyone have a good solution for this problem? Thanks. stan. -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
