File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Joining Strategies 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 "Joining Strategies" Watch "Joining Strategies" New topic
Author

Joining Strategies

Nikhil Jain
Ranch Hand

Joined: May 15, 2005
Posts: 385
Consider the following entity class hierarchy:

public abstract class Account{ }
public class CheckingAccount extends Account{ }
public class SavingsAccount extends Account{ }

Assuming that JOINED is used as Inheritance strategy, and all the three classes are Entity classes, which of the following is correct?

1. Two tables, one for SavingsAccount and one for CheckingAcount will be used.
2. JOINED is an invalid strategy for this scenerio.
3. Three tables, one for each class, will be used.
4. Only one table will be used.

Should the correct answer be 1 nstead of 3. Enthuware says 3 is correct?


SCJP 1.4, SCWCD 1.4, SCBCD 1.5
 
wood burning stoves
 
subject: Joining Strategies
 
Similar Threads
Very Confused!!
Help on testprogram and subclass please
bmp is throwing exception in weblogic 8.1
"No identifier specified" when using InheritanceType.JOINED
Compound Interest on an object