ok I have spent more than 2 days now searching for tutorials and guide on creating a hibernate project, but I cant get things to work,
so I have Two Main questions
Are my Assumptions on how to use the hibernate framework correct?
If yes how do I proceed with each step?
Here are my Assumptions
1a. I complete data modeling step and have a schema ready to be used in application. (Done)
1b. I, then, create object relational mapping, meaning create physical classes to be mapped with each relation. (I have created these classes using NetBeans: New->Entity Classes from database. Will this work or I need to use hibernate somehow to create these?)
1c. I need to have hibernate jars in my application's classpath and some configuration/setting files
1d. I load these configuration/setting files
1e. Start using hibernate
Now all the tutorials I have seen don't elaborate on the details on how to do these steps, I have a lot of tables I cant create all classes manually. Can anyone give a concise solution to this? Something like:
for 1b create object classes using this command: hibernate-object.jar -db -classes
1c to create settings/configuration file use so and so command/plugin
1d this is how you load these files in code
First of all, I would try with an easy example to set up the Hibernate framework:
I recommend you to build your own ORM classes and do not delegate this task to a program (Netbeans or similar) because these programs add a lot of useless code. If you have to use a program because you have a lot of tables you must to check the generated ORM classes one by one.
P.S.: Sorry for my English, I'm still learning...