-1

I use jpa annotations, hibernate has generated for me an association table, related to a manyTomany annotation How can i use this table as a java class?

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

0

You could use your IDE (like NetBeans) to generate POJO classes from your existing database. These classes can then be used as normal java classes to interact with your database.

Follow this tutorial: JPA and JAVAFX

TBF
  • 82
  • 1
  • 1
  • 8
  • Thank you , i'll try to follow this tutorial. – Fatima Ezzahra Gamzi May 29 '16 at 10:16
  • i use eclipse ide, do i need to pursue the same steps? – Fatima Ezzahra Gamzi May 29 '16 at 10:18
  • Personally, I use NetBeans and have not much experience working in Eclipse. But may be this tutorial could help you with your query - [Step by step auto code generation for POJO domain java classes and hbm using Eclipse Hibernate plugin](https://www.javacodegeeks.com/2013/10/step-by-step-auto-code-generation-for-pojo-domain-java-classes-and-hbm-using-eclipse-hibernate-plugin.html). – TBF May 29 '16 at 10:25
  • May be this can help you - [How to install Hibernate Tools into Eclipse Luna?](http://stackoverflow.com/questions/26389961/how-to-install-hibernate-tools-into-eclipse-luna) – TBF May 30 '16 at 19:22