1

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"/>
....
2
  • 2
    You need to avoid only @Entity annotation? or you shouldn't use any annotation at all? Commented Sep 18, 2015 at 18:17
  • I need to avoid only @Entity annotation Commented Sep 20, 2015 at 11:11

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.