Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Hibernate: map last row of a @OneToMany relation
  2. class Element implements Serializable {
  3.  
  4.     @OneToMany(fetch = FetchType.LAZY)
  5.     private List<ElementName> historyOfElementNames;
  6.  
  7.     // What annotations should be used here?
  8.     private ElementName currentElementName;
  9.  
  10.     ...
  11. }