How to disable sql creation for JPA entity classes

Posted by Samuel on Stack Overflow See other posts from Stack Overflow or by Samuel
Published on 2010-06-16T10:39:11Z Indexed on 2010/06/16 10:42 UTC
Read the original article Hit count: 221

Filed under:
|
|

We have some JPA entity classes which are currently under development and wouldn't want them as part of the testing cycle. We tried commenting out the relevant entity classes in META-INF\persistence.xml but the hbm2ddl reverse engineering tool still seems to generate SQL for those entities. How do I tell my code to ignore these classes? Are there any annotations for these or should I have to comment out the @Entity annotation along with my changes in persistence.xml file.

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about jpa