Java

Java is a set of computer software and specifications developed by Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers.

123

Sunday, March 1, 2015

Inheritance in Hibernate

Inheritance in Hibernate: Java is object oriented language and inheritance is one of main functionalities of java. Relational model can implement "is a" and "has a" relationship. Relational model supports only “has a” relationship between two entities. Hibernate can help you map such Objects with relational tables. But you need to choose certain mapping strategy based on your needs. There are three inheritance mapping strategies defined in the hibernate.One table per one concrete class (TABLE_PER_CLASS)One table per all hierarchical classes...