Rafa de Castro Rafa de Castro - 10 months ago 92
Java Question

JPA Map<String,String> mapping

How can I map a Map in JPA without using Hibernate's classes?

Answer

Does not the following work for you?

@ManyToMany(cascade = CascadeType.ALL)
Map<String,EntityType> entitytMap = new HashMap<String, EntityType>();