-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Spring 3 and Hibernate
PostPosted: Mon May 24, 2010 10:52 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.