Add ElementCollection Annotation

This commit is contained in:
Tobias Eidelpes 2021-03-14 14:11:50 +01:00
parent 280f1b35ee
commit 691c01aa98

View File

@ -10,6 +10,7 @@ import java.util.Map;
public class Preferences implements IPreferences { public class Preferences implements IPreferences {
@Id @Id
private Long id; private Long id;
@ElementCollection
private Map<String, String> data; private Map<String, String> data;
@OneToOne(fetch = FetchType.LAZY) @OneToOne(fetch = FetchType.LAZY)