strategy « Table « JPA Q&A





1. Lookup table strategy    forum.hibernate.org

Hi everyone. I seem to have a hard time finding any references on how to handle lookup tables in Hibernate. Does anyone have a practical example on how to do this? Some of the lookup data in my application is used for the UI. So I would like to pre-populate lookup lists on the start up of the application Thanks, Sergey ...

2. "table per class hierarchy" strategy question    forum.hibernate.org

Supose I have a User base class and two subclasses Admin and Customer mapped as subclasses to User with the discriminators "A" and "C". Now suposedly I want to turn a Customer into Admin (I admit, not the best example, but I am sure you understand what I mean). How do I do that since the discriminator must be save/update = ...