Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Relation table

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have a User Table and a Network Identifiers table.
Tables are linked with user_identifiers table so user can have several identifiers (ip, host, user_name, etc)
All classes generated using hbm2java.

The user_ identifiers class is bound to UserIdentifierPK class like:


Is it ok that getIdentifierId and getUserId methods exist both in UserIdentifierPK and UserIdentifier?

What is the correct way to pull user and then all it's Identifiers?

Thank you very much
Sharon

Table's structure:
 
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Sharon whipple:

Is it ok that getIdentifierId and getUserId methods exist both in UserIdentifierPK and UserIdentifier?



Yes. No harm. But if you have it in useridentifier, you might eventually have to look through the useridentifierPK class and get it. But why would you want to do that?


Originally posted by Sharon whipple:

What is the correct way to pull user and then all it's Identifiers?



Have a set of identifiers in User POJOS. Would be easy to pull them.
-
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to use set because I am unable to pass object with set through CXF web service.
 
    Bookmark Topic Watch Topic
  • New Topic