Java Vibes..

August 19, 2009

Hibernate Quick References…

Filed under: java frameworks — harjitdelhi @ 11:41 am
Tags: , , ,

Here are some common tips that every hibernate developer must know. Will post detailed examples later, just posting a few quick links right now for ready reference:

Advertisements

June 22, 2009

Hibernate Inheritance

Hibernate supports different types of inheritance, here we explain it with the help of some examples. Please consider the following structures for the purpose of the examples:

Tables:

payment_t: pmt_id (PK), amount, paid_by, date_time

cash_payment_t: pmt_id (PK), currency

credit_payment_t: pmt_id (PK), cc_no, cc_type

cheque_payment_t: pmt_id (PK), cheque_no

Value objects:

Interfaces:

PaymentVo

Classes:

CashPaymentVo

CreditCardPaymentVo

ChequePaymentVo

(more…)

Create a free website or blog at WordPress.com.