strategy « Association « JPA Q&A





1. Strategy for loose associations    forum.hibernate.org

I have inherited a legacy app and database. Part of the database schema was designed to represent relationships between entities using an association table that can represent associations between rows in any two tables. The definition of the association table is: Associations { id int not null auto_increment, from_table varchar not null, from_column varchar not null, from_key int not null, to_table ...

2. Parse a column association into tokens for Join Strategy?    forum.hibernate.org

Working with a legacy table. Can a column be parsed into tokens before the join or select is made to fetch the association (based on said tokens)? If we have a STATUS column = 07000101, that corresponds to the IH International Hub row in the lookup table. See how the 07 00 01 01 line up with the Type L1, L2, ...