unique « Load « JPA Q&A





1. load via unique (but not primary) key    forum.hibernate.org

I have a table that looks roughly like: USERS number(20) ID varchar2(1024) EMAIL ... ID in this case is the primary key, but EMAIL is also a unique key. As it turns out, I need to load a user by email (as a user enters their email into a form), but I don't want to use email as the primary key ...

3. unique value save/load    forum.hibernate.org

Newbie Joined: Wed Jun 13, 2007 1:01 pm Posts: 7 Hi i have a problem with duplicate entries for unique key. I have table AttOriginator which contains list of AttOriginatorDescription. Each AttachmentDescriptioin contians text(string) and Language. Language is table which contains only languageKey (eg. "en", "de"). All is mapped to hiberante. I read data from xml. transform data to generated pojo ...