Joined: Mon May 24, 2010 10:48 pm Posts: 2
|
Please help.
before conversion to Spring 3
in Hibernate mapping file: <component name="contact" class="com.test.entity.Contact"> <property name="mobileNo" type="string"> <column name="MOBILE_NO" sql-type="CHAR(30)"/> </property> <property name="phoneNo" type="string"> <column name="PHONE_NO" sql-type="CHAR(20)"/> </property> </component>
in Java file: private Contact contact;
------------------------------------------- but in spring 3, how should i annotate? i wan to indicate 2 columns from db are actually 2 values i will kept inside the Contact.java
|
|