• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I have a hibernate question

 
Swaroop Kunduru
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application with Customer, Order, Product, Parts. Out of this Parts should be selected from the table. How can I develop the application using Hibernate to include the code to create table structure with this scenario,

Thanks in Advance.

Swaroop Kunduru.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you want to use ORM? (Object to Relational Mapping)?

Define your classes.

Use the proper Hiberate annotations (table, ometomany etc..)

Tell your application to use Hibernate and tell Hibernate to create or update the tables upon startup.

If you want to see the DDL created, turn hibernate logging on and prepare to be amazed ...

WP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic