Hibernate/JPA, get entity-object from XML

zo0oma

New Member
Let's I have some Entity \[code\]@Entitypublic class User implements Serializable { @Id private long id; @Column private String code;//... } \[/code\]And I want write UnitTest for logic which use this Entity.
Can I get data from some XMLs? (without connction to database)
I want write some XMLs, ctreate in UnitTest EntityManager that is using XMLs instead of database
 
Back
Top