-->
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: hbm.xml mapping
PostPosted: Thu Jan 03, 2013 4:22 pm 
Newbie

Joined: Wed Aug 22, 2012 10:25 am
Posts: 2
I am new to hibernate. I have CHist.hbm.xml as follows
?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="C_HIST_Ent" table="C_HIST" batch-size="50">
...
<property name="pcTyp" type="string">
<column name="PRIMY_C_TYP" length="1" />
</property>
.....
</hibernate-mapping>



Earlier the C_HIST_ENT class declared PRIM_C_TYP as String but now it has changed
as
private CType pcTYP;

the class Ctype has a field typCode which is declared as String.
I would like to set "PRIMY_C_TYP" column name with this typCode.

Can you please suggest as to how this can be done.
Thanks,


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.