How do we represent Many to One/Many to Many relations of Hibernate in Database(Oracle)?
Do we need to write the hibernate code based on Database table or inversely? (i.e Which is first , creation of the tables in Database then Hibernate code (or) Creation of POJO classes in Hibernate then creation of tables?
You can do it the way you like. Hibernate can create a schema from it's mapping files. But I would recommend that you (or your DBA) create tables first. In your development environment you can do it, but in production I think no DBA will let you generate tables. (Esp. in Oracle where you often want to put data and index into different tablespaces)