kieni17

Untitled

Mar 26th, 2020
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. @Entity
  2. @Table(name = T_PREFERENCES)
  3. public class Preferences implements IPreferences {
  4.  
  5.     @Id
  6.     @GeneratedValue
  7.     @Column(name = I_PREFERENCES)
  8.     private Long id;
  9.  
  10.     @ElementCollection
  11.     @CollectionTable(name = J_PREFERENCES_DATA,
  12.             joinColumns = {@JoinColumn(name = I_PREFERENCES, referencedColumnName = I_PREFERENCES)})
  13.     @MapKeyColumn(name = M_PREFERENCES_DATA + "_KEY")
  14.     private Map<String, String> data;
  15.  
  16. ...
  17.  
  18.  
  19.  
  20. }
Add Comment
Please, Sign In to add comment