CHAPTER 5 Inheritance and custom types name = (Web server application)
CHAPTER 5 Inheritance and custom types name = “CREDIT_CARD”, pkJoinColumns = @PrimaryKeyJoinColumn(name = “CREDIT_CARD_ID”) ) public class CreditCard extends BillingDetails { @Column(table = “CREDIT_CARD”, name = “CC_NUMBER”, nullable = false) private String number; … } If you don t specify a primary key join column for the secondary table, the name of the primary key of the single inheritance table is used in this case, BILLING_DETAILS_ID. Also note that you need to map all properties that are moved into the secondary table with the name of that secondary table. You also want more tips about how to choose an appropriate combination of mapping strategies for your application s class hierarchies. 5.1.6 Choosing a strategy You can apply all mapping strategies to abstract classes and interfaces. Interfaces may have no state but may contain accessor method declarations, so they can be treated like abstract classes. You can map an interface with
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.