-->
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: Mapping Excep - table NETWORK... refers to an unmapped class
PostPosted: Thu Sep 16, 2010 1:33 pm 
Newbie

Joined: Thu Sep 16, 2010 1:09 pm
Posts: 1
Hi,

I am getting below exception; please help me.

org.hibernate.MappingException: An association from the table NETWORK_SCHEDULE_TRANSLATION refers to an unmapped class: ops.common.geo.bus.domain.TimeZone
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1134)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1052)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1168)




1. Time Zone:
<hibernate-mapping>
<class name="ops.common.geo.bus.domain.TimeZone" table="TIMEZONE">
<id name="timeZoneID" type="long">
<column name="TIMEZONE_ID" precision="15" scale="0" not-null="true" unique="true"/>
<generator class="sequence">
<param name="sequence">TIMEZONE_ID_SEQ</param>
</generator>
</id>
<property name="timeZoneCode" type="string">
<column name="TIMEZONE_CODE" not-null="true"/>
</property>
<property name="timeZoneDescription" type="string">
<column name="TIMEZONE_DESC" not-null="true"/>
</property>
<property name="lastUpdatedDateTime" type="timestamp">
<column name="LAST_UPDATE_DATE_TIME"/>
</property>
<property name="lastUpdatedUserID" type="long">
<column name="LAST_UPDATE_USER_ID"/>
</property>
<property name="createdDate" type="timestamp">
<column name="CREATE_DATE_TIME"/>
</property>
<property name="deletedFlag" type="yes_no">
<column name="DELETED_FLAG"/>
</property>
</class>
</hibernate-mapping>

2. NetworkScheduleTranslation:

<hibernate-mapping>
<class name = "ops.common.tv.bus.schedule.domain.NetworkScheduleTranslation" table = "NETWORK_SCHEDULE_TRANSLATION" schema = "SAPTSDBO">
<id name="translationID" type="long">
<column name="NWRK_SCHEDULE_TRANSLATION_ID" precision="15" scale="0" />
<generator class="sequence">
<param name="sequence">NETWORK_SCHD_TRANSLATION_SEQ</param>
</generator>
</id>
<property name = "daysOfWeek" type = "long">
<column name = "DAY_OF_WEEK" precision="15" scale="0" not-null = "true" />
</property>
<property name = "showEstDateTime" type = "date" insert="false" update="false">
<column name = "SHOW_EASTERN_TIME" length = "8"/>
</property>
<property name = "showEstTime" type = "timestamp" insert="false" update="false">
<column name = "SHOW_EASTERN_TIME" length = "8"/>
</property>
<property name = "effectiveDate" type = "date">
<column name = "EFFECTIVE_DATE" length = "8" not-null = "true" />
</property>
<property name = "endDate" type = "date">
<column name = "END_DATE" length = "8" />
</property>
<property name = "showLocalDateTime" type = "date" insert="false" update="false">
<column name = "SHOW_LOCAL_TIME" length = "8"/>
</property>
<property name = "showLocalTime" type = "timestamp" insert="false" update="false">
<column name = "SHOW_LOCAL_TIME" length = "8"/>
</property>
<property name = "showLocalOffsetNum" type = "long">
<column name = "SHOW_LOCAL_OFFSET_NUM" precision="15" scale="0" />
</property>

<property name = "lastUpdatedUserID" type = "long">
<column name = "LAST_UPDATE_USER_ID" precision="22" scale="0" />
</property>
<property name = "lastUpdatedDateTime" type = "date">
<column name = "LAST_UPDATE_DATE_TIME" length = "8" />
</property>

<property name = "createdDate" type = "date">
<column name = "CREATE_DATE_TIME" length = "8" />
</property>
<property name="deletedFlag" type="yes_no">
<column name="DELETED_FLAG" length="1" />
</property>
<property name = "sourceSystemID" type = "long">
<column name = "SOURCE_SYSTEM_ID" precision="15" scale="0" />
</property>


<property name = "sourceSystemUniqueKey" type = "string">
<column name = "SOURCE_SYSTEM_UNIQUE_KEY" length = "100" />
</property>

<many-to-one name="timeZone" class="ops.common.geo.bus.domain.TimeZone" >
<column name="TIMEZONE_ID" />
</many-to-one>
<many-to-one name="tvNetwork" class="ops.tv.bus.network.domain.TVNetwork" >
<column name="TV_NETWORK_ID" />
</many-to-one>

</class>
</hibernate-mapping>


3. and these are added to properties file.


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.