ok I spent more than 2 days searching for textbooks and a guide on creating a sleep mode project, but I canβt get it to work,
therefore, I have two main questions.
Are my assumptions on how to use the hibernate framework correctly?
If so, how do I proceed with each step?
Here are my assumptions
1a. I am completing the data modeling phase and a ready-made diagram for use in the application. (Done)
1b. Then I create a relational mapping of objects, which means creating physical classes to map to each relation. (I created these classes using NetBeans: New-> Entity Classes from the database. Will this work, or do I need to use hibernate somehow to create them?)
1c. I need to have hibernate jars in my application class path and some configuration / settings files
1g I load these configuration / settings files
1st Start using hibernate
Now all the training materials that I saw do not specify the detailed information on how to take these steps, I have many tables that I cannot create for all classes manually. Can someone give a short solution? Sort of:
for 1b, create object classes with this command: hibernate-object.jar -db -classes
1c to create settings / configuration file using command / plugin anyway
1d this is how you load these files into code
source
share