0

There's my map:

//*many class fields*
@ElementCollection
@MapKeyColumn(name="some_varchar_column")
@Column(name="other_varchar_column")
private Map<String, String> employees;
public Foo() {
        employees = new HashMap<>();
    }
//*getters and setters*

Yet, code does not work.

Jaqen K'uba
  • 279
  • 1
  • 3
  • 17
  • 3
    "code does not work" - could you provide any details? – vojta Dec 21 '15 at 07:18
  • http://stackoverflow.com/a/4700372/3899583 – vojta Dec 21 '15 at 07:19
  • I don't think the JPA specifications allow for this. I tried searching them for how exactly this is done some time ago, but all I found told me this is not a data model supported by the standard. – coladict Dec 22 '15 at 13:03

0 Answers0