Hi,
I am facing the error that says a given class (which is mentioned in the hbm file) is not mapped.
My mapping and log is given below. Any help on this please?
Thanks
Ahmad
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0
Mapping documents:
<hibernate-mapping>
<class name="com.ge.nbc.ops.broadcast.bus.affiliate.domain.NetworkAssociatedLink" table="NETWORK_ASSOCIATED_LINK">
<id name="networkAssociatedLinkID" type="long">
<column name="NWRK_ASSOCIATED_LINK_ID" precision="15" scale="0" />
<generator class="sequence">
<param name="sequence">NWRK_ASSOCIATED_LINK_SEQ</param>
</generator>
</id>
<property name="networkAssociatedLinkText" type="string">
<column name="NWRK_ASSOCIATED_LINK_TEXT" length="100" not-null="true" />
</property>
<property name="lastUpdatedDateTime" type="date">
<column name="LAST_UPDATE_DATE_TIME" length="7" />
</property>
<property name="lastUpdatedUserID" type="long">
<column name="LAST_UPDATE_USER_ID" />
</property>
<property name="createdDate" type="date">
<column name="CREATE_DATE_TIME" length="7" />
</property>
<property name="deletedFlag" type="yes_no">
<column name="DELETED_FLAG" length="1" />
</property>
<many-to-one name="networkOfLink" class="com.ge.nbc.ops.tv.bus.network.domain.TVNetwork">
<column name="TV_NETWORK_ID" />
</many-to-one>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
2006-01-14 13:05:33,585 DEBUG [com.ge.nbc.ops.broadcast.bus.affiliate.dao.NetworkAssociatedLinkDAO] Inside try block of NetworkAssociatedLinkDAO: selectNetworkAssociatedLinks()
2006-01-14 13:05:41,850 DEBUG [com.ge.nbc.ops.broadcast.bus.affiliate.dao.NetworkAssociatedLinkDAO] Entered NetworkAssociatedLinkDAO: selectNetworkAssociatedLinks()
2006-01-14 13:05:42,319 DEBUG [com.ge.nbc.ops.broadcast.bus.affiliate.dao.NetworkAssociatedLinkDAO] Inside try block of NetworkAssociatedLinkDAO: selectNetworkAssociatedLinks()
2006-01-14 13:05:42,678 DEBUG [org.hibernate.impl.SessionImpl] find: from NetworkAssociatedLink a
2006-01-14 13:05:42,678 DEBUG [org.hibernate.engine.QueryParameters] named parameters: {}
2006-01-14 13:05:44,491 DEBUG [org.hibernate.hql.ast.QueryTranslatorImpl] parse() - HQL: from NetworkAssociatedLink a
2006-01-14 13:05:44,725 DEBUG [org.hibernate.hql.ast.AST] --- HQL AST ---
\-[QUERY] 'query'
\-[SELECT_FROM] 'SELECT_FROM'
\-[FROM] 'from'
\-[RANGE] 'RANGE'
+-[IDENT] 'NetworkAssociatedLink'
\-[ALIAS] 'a'
2006-01-14 13:05:44,725 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors
2006-01-14 13:05:45,725 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] query() << begin, level = 1
2006-01-14 13:05:46,241 ERROR [org.hibernate.hql.PARSER] *** ERROR: NetworkAssociatedLink is not mapped.
2006-01-14 13:05:46,241 DEBUG [org.hibernate.hql.ast.ErrorCounter] NetworkAssociatedLink is not mapped.
NetworkAssociatedLink is not mapped.
at org.hibernate.hql.ast.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:85)
at org.hibernate.hql.ast.FromElementFactory.addFromElement(FromElementFactory.java:77)
at org.hibernate.hql.ast.FromClause.addFromElement(FromClause.java:67)
Name and version of the database you are using: Oracle 9i