Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » ManyToOne only have the IDs in a collection not the whole object
ManyToOne only have the IDs in a collection not the whole object [message #454344] Sat, 01 August 2009 13:43 Go to previous message
Philipp Kursawe is currently offline Philipp Kursawe
Messages: 135
Registered: July 2009
Senior Member
Hello!

I wonder if its possible to fetch only the IDs of the associated
collection objects instead of the full blown entity. Lets say I have a
User object hat can have 0..n orders assigned to him. But I only want to
have the order IDs in the collection in the User entity.
Collection<String> orders;
instead of
Collection<UserOrder> orders;

Any ideas?

Thanks
Phil
 
Read Message
Read Message
Previous Topic:OneToMany two times
Next Topic:EclipseLink - ordering of tables for join statement
Goto Forum:
  


Current Time: Wed May 22 00:33:08 EDT 2013

Powered by FUDForum. Page generated in 0.01970 seconds