Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate assignment

Ashish Tank
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am learning Hibernate and found Hibernate assignment from the internet. Need help from you experts to check if I have developed correct POJO classes which are given below.


Image file for database table design and java class design is attached with this thread and requirement instruction is given below:

1. This is a highly contrived example database holding information for a collection of flowershops. Each flowershop sells different types of flowers; the weekly sales of each flower type per shop is persisted in the database. Each shop also is run by various managers.
2. Write fully functional POJO Java class files (Flowershop and Manager) based on the database tables and the requirements. Make sure to write all methods required for Hibernate to work properly.
3. Include all the JPA2 and JAXB annotations necessary to implement the requirements. Please include all annotations, as if you were going to override the default values. Hibernate-specific annotations are okay. No hbm.xml files please.
4. You may assume that the XML tag is the same as the Java property name.

Database Table.png
[Thumbnail for Database Table.png]
Databse Table and Java Class Requirement
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!