dozer « Map « JPA Q&A





1. Dozer mapping for Hibernate object to DTO    stackoverflow.com

I try to use Dozer to convert my domain entity to DTO objects. So, I want to convert PersistentList, PersistentBag, ... from my domain entity to ArrayList, ... in my DTO objects ...

2. Dozer: Hibernate PersistentMap is not mapped to java.util.HashMap    stackoverflow.com

I have a Hibernate annotated entity with a field:

@OneToMany(mappedBy="templateInstance", fetch = FetchType.EAGER) 
@MapKey(name = "attributeName") 
private Map<String, Component> components; 
Hibernate makes a PersistentMap out of this. Then I want Dozer ...

3. DTO mapping and updating to a Database with Java, Dozer and Hibernate    stackoverflow.com

I'm using Dozer to map Hibernate entities to their DTOs. A simplified example class is the following:

@Entity
public class Role {

     @Id
     @GeneratedValue
  ...