jQuery in Action, 2nd edition*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Single table for Class or Single Table for Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Single table for Class or Single Table for Classes" Watch "Single table for Class or Single Table for Classes" New topic
Author

Single table for Class or Single Table for Classes

Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
Hi Guys,

To me (may be bcos im not a native english man), the term "Single table for Class" means that there would be a separate single table for each class. But in real, There is only a single table for all classes.

So I think "Single table for Class" should be read as "Single Table for Classes".

What do you think?
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Hi Chaminda,

There are three known mappings available:

1- Single table per class hierarchy
2- Table per concrete class
3- Table per subclass


cmbhatt
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
Thanks,

My bad. It is "single table per class hierarchy". Not single table for class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Single table for Class or Single Table for Classes
 
Similar Threads
mapping a single object to multiple tables
Inheritence in JPA
Misleading Inheritance Model names - Java Beat questions
Clarification regarding stored procedure Hibernate
What's the relationship between dessign patterns and Refactoring Databases?