Daniel Kohout
Daniel Kohout

Reputation: 31

Hibernate without annotation entity

Client requires a solution without @entity annotation. Is a possible to use hibernate without the @entity annotation? I have hibernate.cfg.xml file with mapping entity:

.....
<mapping class="cz.tacr.elza.api.model.FindingAid"/>
....

Upvotes: 1

Views: 3608

Answers (1)

Paulo Pedroso
Paulo Pedroso

Reputation: 3685

See if this helps. Scroll down to "Hibernate Mapping XML Configuration".

http://www.journaldev.com/2882/hibernate-tutorial-for-beginners-using-xml-annotations-and-property-configurations

Upvotes: 1

Related Questions