Thanks for the reply.Do let me knwo if I am dng somethign horrendously wrong.This is my first experience with hibernate:)and I have had really v little time to learn:)
<?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>
<!--CONNOTE-->
<class
name="au.com.xbnet.document.connotes.datatypes.ConNote"
table="testing_connote" lazy="true">
<id
name="conNoteRef"
type="string"
column="connote_ref" >
<generator class="assigned"/>
</id>
<many-to-one name="serviceType" class="au.com.xbnet.document.connotes.datatypes.ServiceVO" column="service_id"
unique="true" cascade="all" />
<many-to-one name="statusId" class="au.com.xbnet.document.connotes.datatypes.StatusTypesVO" column="status_id"
unique="true" cascade="all" />
<many-to-one name="packingId" class="au.com.xbnet.document.connotes.datatypes.PackingVO" column="packing_id"
unique="true" cascade="all" />
<many-to-one name="paymentMethod" class="au.com.xbnet.document.connotes.datatypes.PaymentVO" column="payment_method_id"
unique="true" cascade="all" />
<many-to-one name="userId" class="au.com.xbnet.admin.datatypes.UserVO" column="user_id"
unique="true" cascade="all" />
<many-to-one name="originId" class="au.com.xbnet.admin.datatypes.PortVO" column="origin_id"
unique="true" cascade="all" />
<many-to-one name="destinationId" class="au.com.xbnet.admin.datatypes.PortVO" column="destination_id"
unique="true" cascade="all" />
<set name="items" table="testconnote_item" lazy="false">
<key column="connote_ref" />
<one-to-many class="au.com.xbnet.document.connotes.datatypes.ConItemVO" />
</set>
<set name="manifestItems" table="test_manifest_item" lazy="false">
<key column="connote_ref" />
<one-to-many class="au.com.xbnet.document.manifest.datatypes.ManifestItemVO" />
</set>
<set name="charges" table="fms_connote_charges" lazy="false">
<key column="connote_ref" />
<one-to-many class="au.com.xbnet.rates.datatypes.ConNoteCharges" />
</set>
<property
name="conNoteCreation"
column="connote_date"
type="java.sql.Timestamp"
not-null="false"
/>
<property
name="conNoteDispatch"
column="dispatch_date"
type="java.sql.Timestamp"
not-null="false"
/>
<property
name="chargeTo"
column="charge_to"
type="integer"
not-null="false"
/>
<property
name="isHandRated"
column="is_handrated"
type="boolean"
not-null="false"
/>
<property
name="isDangerous"
column="is_dangerous"
type="boolean"
not-null="false"
/>
<property
name="additionalInstructions"
column="instructions"
type="string"
not-null="false"
/>
<property
name="notes"
column="notes"
type="string"
not-null="false"
/>
</class>
</hibernate-mapping>
Hibernate.cfg.xml mapping
<mapping resource="au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml"/>
Stack trace of jboss where it maps for all other jsps
2005-11-17 16:19:56,120 DEBUG [org.hibernate.cfg.Configuration] null<-org.dom4j.tree.DefaultAttribute@f3e133 [Attribute: name resource value "au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml"]
2005-11-17 16:19:56,120 INFO [org.hibernate.cfg.Configuration] Reading mappings from resource: au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml
2005-11-17 16:19:56,120 DEBUG [org.hibernate.util.DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
2005-11-17 16:19:56,120 DEBUG [org.hibernate.util.DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
2005-11-17 16:19:56,261 INFO [org.hibernate.cfg.HbmBinder] Mapping class: au.com.xbnet.document.connotes.datatypes.ConNote -> testing_connote
2005-11-17 16:19:56,276 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: conNoteRef -> connote_ref
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: serviceType -> service_id
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: statusId -> status_id
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: packingId -> packing_id
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: paymentMethod -> payment_method_id
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: userId -> user_id
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: originId -> origin_id
2005-11-17 16:19:56,448 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: destinationId -> destination_id
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: items
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: manifestItems
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: charges
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: conNoteCreation -> connote_date
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: conNoteDispatch -> dispatch_date
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: chargeTo -> charge_to
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: isHandRated -> is_handrated
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: isDangerous -> is_dangerous
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: additionalInstructions -> instructions
2005-11-17 16:19:56,464 DEBUG [org.hibernate.cfg.HbmBinder] Mapped property: notes -> notes
Stack trace for this particular jsp
2005-11-17 16:24:09,051 INFO [org.hibernate.cfg.Configuration] Configuration resource: WEB-INF/hibernate.xml
2005-11-17 16:24:09,051 DEBUG [org.hibernate.util.DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
2005-11-17 16:24:09,051 DEBUG [org.hibernate.util.DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
2005-11-17 16:24:09,051 DEBUG [org.hibernate.util.DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
2005-11-17 16:24:09,051 DEBUG [org.hibernate.util.DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.driver_class=org.postgresql.Driver
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.url=jdbc:postgresql://linux:5432/fmsdb
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.username=postgres
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.password=
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.pool_size=1
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.driver_class=org.postgresql.Driver
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] dialect=org.hibernate.dialect.PostgreSQLDialect
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.url=jdbc:postgresql://linux:5432/fmsdb
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] show_sql=true
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.username=postgres
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] hibernate.jdbc.batch_size=30
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.password=
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] connection.pool_size=1
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] dialect=org.hibernate.dialect.PostgreSQLDialect
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] show_sql=true
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] null<-org.dom4j.tree.DefaultAttribute@16068c9 [Attribute: name resource value "au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml"]
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] hibernate.jdbc.batch_size=30
2005-11-17 16:24:09,051 INFO [org.hibernate.cfg.Configuration] Reading mappings from resource: au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml
2005-11-17 16:24:09,051 DEBUG [org.hibernate.cfg.Configuration] null<-org.dom4j.tree.DefaultAttribute@7f7957 [Attribute: name resource value "au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml"]
2005-11-17 16:24:09,051 INFO [org.hibernate.cfg.Configuration] Reading mappings from resource: au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml
2005-11-17 16:24:09,051 INFO [STDOUT] error----org.hibernate.MappingException: Could not read mappings from resource: au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml
2005-11-17 16:24:09,051 DEBUG [org.hibernate.util.DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
2005-11-17 16:24:09,051 INFO [STDOUT] ***** Error Creating SessionFactory *****
2005-11-17 16:24:09,051 DEBUG [org.hibernate.util.DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
2005-11-17 16:24:09,067 INFO [STDOUT] org.hibernate.MappingException: Could not read mappings from resource: au/com/xbnet/document/connotes/services/connotehiber/ConNote.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:472)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1396)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1364)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1345)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1321)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1241)
at au.com.xbnet.utils.HibernateUtils.currentSession(HibernateUtils.java:49)
at au.com.xbnet.document.connotes.services.connotehiber.ConNoteHelper.<init>(ConNoteHelper.java:49)
at au.com.xbnet.document.connotes.services.connotemanager.ConNoteManager
Thanks
priya