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,
|
|