1 Reply Latest reply on Mar 2, 2006 10:30 AM by gavin.king

    Hibernate failing to map collection

    edwar64896

      Hi. Just starting out on my first seam expedition and have run into a brick wall with hibernate. Was having some success up until yesterday when this error occurs...

      00:57:40,871 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.Account.payments -> Payment
      00:57:40,873 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.Account.reservations -> Reservation
      00:57:40,874 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.BookableAsset.rates -> Rate
      00:57:40,875 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.BookableAsset.images -> Image
      00:57:40,876 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.BookableAsset.reservations -> Reservation
      00:57:40,877 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.Property.rooms -> Room
      00:57:40,878 INFO [CollectionBinder] Mapping collection: com.snet.cb.ejb.Reservation.payments -> Payment
      00:57:40,909 WARN [ServiceController] Problem starting service persistence.units:ear=centralbookings.ear.ear,jar=centralbookings.jar.jar,unitName=cbDatabase
      java.lang.reflect.InvocationTargetException
      ...
      Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Collection, for columns: [org.hibernate.mapping.Column(reservations)]


      I have a number of "OneToMany" relationships and am fairly confident that they are all configured similarly.

      Is there any way that I can debug the annotation parsing in a little more detail? The Annotations and EJB's compile a treat, but just go titzup when getting deployed.

      Am posting here due use of seam...

      TIA for any help...

      cheers,

      Mark.