Rafa de Castro Rafa de Castro - 4 months ago 27
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>();
Comments