aspose file tools*
The moose likes JPA Certification (OCEJPA) and the fly likes Element collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » JPA Certification (OCEJPA)
Bookmark "Element collections" Watch "Element collections" New topic
Author

Element collections

Jayr Motta
Ranch Hand

Joined: Jul 30, 2010
Posts: 110

Hi,

I'm studying for the JPA certification and I've read about element collections in the book I'm reading(Pro JPA 2, Mastering the Java persistence), but I could not see the benefits of that, neither how it's better than a "common" relationship.

Does someone know what benefits it brings or a possible source of information about it? (I'm gonna read the specification soon, maybe this helps ..)


Feel free to ask me anything!
www.BlackBeltFactory.com/ui#!/ref=jmotta, SCJP 6, OCWCD JEE5, OCE EJB JEE6
Manuel Petermann
Ranch Hand

Joined: Jul 19, 2011
Posts: 175

I use element collections when I simply need a primitive datatype in a collection. You may declare a new relationship but then you need a new class just for one field. Its too bloated imo.


Please correct my English.
Michael Babula
Greenhorn

Joined: Oct 10, 2011
Posts: 1
Hello everyone.. New here


Buy PCB
 
 
subject: Element collections