javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

Hibernate JIRA | Christian Bauer | 1 decade ago
  1. 0

    My hibernate.cfg.xml is ignored. I suggest we finally get some real tests of EM configuration before we let people use this stuff. persistence.xml: <entity-manager> <name>caveatemptor</name> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml"/> </properties> </entity-manager> ------------- Standard Output --------------- Running test... 06:06:33,649 DEBUG HibernatePersistence: Analyse of persistence.xml: file:/Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes/META-INF/persistence.xml 06:06:33,749 DEBUG JarVisitor: Searching mapped entities in jar/par: /Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes 06:06:33,932 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CreditCard 06:06:33,974 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Category 06:06:33,997 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Item 06:06:34,010 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Bid 06:06:34,027 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem$Id 06:06:34,034 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.persistence.audit.AuditLogRecord 06:06:34,038 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Address 06:06:34,051 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BankAccount 06:06:34,055 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BillingDetails 06:06:34,077 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.NodeInfo 06:06:34,081 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem 06:06:34,089 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Comment 06:06:34,100 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.User 06:06:34,106 DEBUG HibernatePersistence: Creating Factory: caveatemptor 06:06:34,168 INFO Environment: Hibernate 3.1 beta 2 06:06:34,169 INFO Environment: hibernate.properties not found 06:06:34,172 INFO Environment: using CGLIB reflection optimizer 06:06:34,175 INFO Environment: using JDK 1.4 java.sql.Timestamp handling 06:06:34,298 INFO AnnotationConfiguration: Mapping package org.hibernate.ce.auction.persistence 06:06:34,487 DEBUG Mappings: Added monetary_amount_usd with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:06:34,487 DEBUG Mappings: Added monetary_amount_eur with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:06:34,487 DEBUG Mappings: Added item_state with class org.hibernate.ce.auction.persistence.EnumUserType 06:06:34,488 DEBUG Mappings: Added creditcard_type with class org.hibernate.ce.auction.persistence.EnumUserType 06:06:34,488 DEBUG Mappings: Added rating with class org.hibernate.ce.auction.persistence.EnumUserType 06:06:34,491 DEBUG AnnotationConfiguration: Executing first pass of annotated classes 06:06:34,595 DEBUG EntityBinder: Import with entity name=BillingDetails 06:06:34,623 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.BillingDetails per field access 06:06:34,666 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.id 06:06:34,670 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:06:34,681 DEBUG AnnotationBinder: id is an id 06:06:34,691 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,695 DEBUG PropertyBinder: Building property id 06:06:34,699 DEBUG PropertyBinder: Cascading id with null 06:06:34,700 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,700 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.version 06:06:34,703 DEBUG Ejb3Column: Binding column version unique false 06:06:34,703 DEBUG AnnotationBinder: version is a version property 06:06:34,703 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,703 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,703 DEBUG PropertyBinder: Building property version 06:06:34,703 DEBUG PropertyBinder: Cascading version with null 06:06:34,704 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,704 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.ownerName 06:06:34,704 DEBUG Ejb3Column: Binding column OWNER_NAME unique false 06:06:34,707 DEBUG PropertyBinder: binding property ownerName with lazy=false 06:06:34,707 DEBUG SimpleValueBinder: building SimpleValue for ownerName 06:06:34,707 DEBUG PropertyBinder: Building property ownerName 06:06:34,707 DEBUG PropertyBinder: Cascading ownerName with null 06:06:34,707 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.user 06:06:34,709 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:34,719 DEBUG PropertyBinder: Building property user 06:06:34,719 DEBUG PropertyBinder: Cascading user with none 06:06:34,720 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.created 06:06:34,720 DEBUG Ejb3Column: Binding column created unique false 06:06:34,720 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,720 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,720 DEBUG PropertyBinder: Building property created 06:06:34,720 DEBUG PropertyBinder: Cascading created with null 06:06:34,732 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:06:34,732 DEBUG AnnotationBinder: Joined column(s) created 06:06:34,734 DEBUG EntityBinder: Import with entity name=CreditCard 06:06:34,771 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.CreditCard per field access 06:06:34,781 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.type 06:06:34,781 DEBUG Ejb3Column: Binding column CC_TYPE unique false 06:06:34,783 DEBUG PropertyBinder: binding property type with lazy=false 06:06:34,783 DEBUG SimpleValueBinder: building SimpleValue for type 06:06:34,783 DEBUG PropertyBinder: Building property type 06:06:34,783 DEBUG PropertyBinder: Cascading type with null 06:06:34,784 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.number 06:06:34,784 DEBUG Ejb3Column: Binding column CC_NUMBER unique false 06:06:34,784 DEBUG PropertyBinder: binding property number with lazy=false 06:06:34,784 DEBUG SimpleValueBinder: building SimpleValue for number 06:06:34,784 DEBUG PropertyBinder: Building property number 06:06:34,784 DEBUG PropertyBinder: Cascading number with null 06:06:34,784 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.expMonth 06:06:34,784 DEBUG Ejb3Column: Binding column EXP_MONTH unique false 06:06:34,784 DEBUG PropertyBinder: binding property expMonth with lazy=false 06:06:34,784 DEBUG SimpleValueBinder: building SimpleValue for expMonth 06:06:34,785 DEBUG PropertyBinder: Building property expMonth 06:06:34,786 DEBUG PropertyBinder: Cascading expMonth with null 06:06:34,786 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.expYear 06:06:34,786 DEBUG Ejb3Column: Binding column EXP_YEAR unique false 06:06:34,786 DEBUG PropertyBinder: binding property expYear with lazy=false 06:06:34,786 DEBUG SimpleValueBinder: building SimpleValue for expYear 06:06:34,786 DEBUG PropertyBinder: Building property expYear 06:06:34,786 DEBUG PropertyBinder: Cascading expYear with null 06:06:34,791 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,791 DEBUG EntityBinder: Import with entity name=Category 06:06:34,791 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Category per field access 06:06:34,837 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.id 06:06:34,837 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,837 DEBUG AnnotationBinder: id is an id 06:06:34,837 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,837 DEBUG PropertyBinder: Building property id 06:06:34,837 DEBUG PropertyBinder: Cascading id with null 06:06:34,837 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,837 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.version 06:06:34,837 DEBUG Ejb3Column: Binding column version unique false 06:06:34,838 DEBUG AnnotationBinder: version is a version property 06:06:34,838 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,838 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,838 DEBUG PropertyBinder: Building property version 06:06:34,838 DEBUG PropertyBinder: Cascading version with null 06:06:34,838 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,838 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.name 06:06:34,838 DEBUG Ejb3Column: Binding column CAT_NAME unique false 06:06:34,838 DEBUG PropertyBinder: binding property name with lazy=false 06:06:34,838 DEBUG SimpleValueBinder: building SimpleValue for name 06:06:34,838 DEBUG PropertyBinder: Building property name 06:06:34,838 DEBUG PropertyBinder: Cascading name with null 06:06:34,840 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.categorizedItems 06:06:34,840 DEBUG Ejb3Column: Binding column null unique false 06:06:34,844 DEBUG Ejb3Column: Binding column null unique false 06:06:34,868 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.Category.categorizedItems through a foreign key 06:06:34,871 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.Category.categorizedItems 06:06:34,873 DEBUG PropertyBinder: Building property categorizedItems 06:06:34,873 DEBUG PropertyBinder: Cascading categorizedItems with all,delete-orphan 06:06:34,873 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.created 06:06:34,874 DEBUG Ejb3Column: Binding column created unique false 06:06:34,874 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,874 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,874 DEBUG PropertyBinder: Building property created 06:06:34,874 DEBUG PropertyBinder: Cascading created with null 06:06:34,877 DEBUG QueryBinder: Named query minBid => select b from Bid b where b.amount.value = (select min(b.amount.value) from Bid b where b.item.id = :itemid) 06:06:34,877 DEBUG QueryBinder: Named query maxBid => select b from Bid b where b.amount.value = (select max(b.amount.value) from Bid b where b.item.id = :itemid) 06:06:34,877 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,878 DEBUG EntityBinder: Import with entity name=Item 06:06:34,878 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Item per field access 06:06:34,904 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.id 06:06:34,904 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:34,905 DEBUG AnnotationBinder: id is an id 06:06:34,905 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,905 DEBUG PropertyBinder: Building property id 06:06:34,905 DEBUG PropertyBinder: Cascading id with null 06:06:34,905 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,905 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.version 06:06:34,905 DEBUG Ejb3Column: Binding column version unique false 06:06:34,905 DEBUG AnnotationBinder: version is a version property 06:06:34,905 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,905 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,905 DEBUG PropertyBinder: Building property version 06:06:34,906 DEBUG PropertyBinder: Cascading version with null 06:06:34,906 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,906 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.name 06:06:34,907 DEBUG Ejb3Column: Binding column name unique false 06:06:34,907 DEBUG PropertyBinder: binding property name with lazy=false 06:06:34,907 DEBUG SimpleValueBinder: building SimpleValue for name 06:06:34,908 DEBUG PropertyBinder: Building property name 06:06:34,908 DEBUG PropertyBinder: Cascading name with null 06:06:34,908 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.seller 06:06:34,908 DEBUG Ejb3Column: Binding column SELLER_ID unique false 06:06:34,908 DEBUG PropertyBinder: Building property seller 06:06:34,908 DEBUG PropertyBinder: Cascading seller with none 06:06:34,908 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.description 06:06:34,908 DEBUG Ejb3Column: Binding column description unique false 06:06:34,909 DEBUG PropertyBinder: binding property description with lazy=false 06:06:34,909 DEBUG SimpleValueBinder: building SimpleValue for description 06:06:34,909 DEBUG PropertyBinder: Building property description 06:06:34,909 DEBUG PropertyBinder: Cascading description with null 06:06:34,909 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.initialPrice 06:06:34,909 DEBUG Ejb3Column: Binding column INITIAL_PRICE unique false 06:06:34,909 DEBUG Ejb3Column: Binding column INITIAL_PRICE_CURRENCY unique false 06:06:34,909 DEBUG PropertyBinder: binding property initialPrice with lazy=false 06:06:34,910 DEBUG SimpleValueBinder: building SimpleValue for initialPrice 06:06:34,910 DEBUG PropertyBinder: Building property initialPrice 06:06:34,910 DEBUG PropertyBinder: Cascading initialPrice with null 06:06:34,910 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.reservePrice 06:06:34,910 DEBUG Ejb3Column: Binding column RESERVE_PRICE unique false 06:06:34,912 DEBUG Ejb3Column: Binding column RESERVE_PRICE_CURRENCY unique false 06:06:34,912 DEBUG PropertyBinder: binding property reservePrice with lazy=false 06:06:34,913 DEBUG SimpleValueBinder: building SimpleValue for reservePrice 06:06:34,913 DEBUG PropertyBinder: Building property reservePrice 06:06:34,913 DEBUG PropertyBinder: Cascading reservePrice with null 06:06:34,913 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.startDate 06:06:34,913 DEBUG Ejb3Column: Binding column startDate unique false 06:06:34,914 DEBUG PropertyBinder: binding property startDate with lazy=false 06:06:34,914 DEBUG SimpleValueBinder: building SimpleValue for startDate 06:06:34,914 DEBUG PropertyBinder: Building property startDate 06:06:34,914 DEBUG PropertyBinder: Cascading startDate with null 06:06:34,915 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.endDate 06:06:34,915 DEBUG Ejb3Column: Binding column endDate unique false 06:06:34,915 DEBUG PropertyBinder: binding property endDate with lazy=false 06:06:34,915 DEBUG SimpleValueBinder: building SimpleValue for endDate 06:06:34,915 DEBUG PropertyBinder: Building property endDate 06:06:34,915 DEBUG PropertyBinder: Cascading endDate with null 06:06:34,915 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.categorizedItems 06:06:34,915 DEBUG Ejb3Column: Binding column null unique false 06:06:34,915 DEBUG Ejb3Column: Binding column null unique false 06:06:34,916 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.Item.categorizedItems through a foreign key 06:06:34,916 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.Item.categorizedItems 06:06:34,916 DEBUG PropertyBinder: Building property categorizedItems 06:06:34,916 DEBUG PropertyBinder: Cascading categorizedItems with all,delete-orphan 06:06:34,916 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.bids 06:06:34,916 DEBUG Ejb3Column: Binding column null unique false 06:06:34,916 DEBUG Ejb3Column: Binding column null unique false 06:06:34,918 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.Item.bids through a foreign key 06:06:34,918 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.Item.bids 06:06:34,918 DEBUG PropertyBinder: Building property bids 06:06:34,918 DEBUG PropertyBinder: Cascading bids with all,delete-orphan 06:06:34,918 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.successfulBid 06:06:34,919 DEBUG Ejb3Column: Binding column SUCCESSFUL_BID_ID unique false 06:06:34,919 DEBUG PropertyBinder: Building property successfulBid 06:06:34,919 DEBUG PropertyBinder: Cascading successfulBid with none 06:06:34,919 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.state 06:06:34,919 DEBUG Ejb3Column: Binding column ITEM_STATE unique false 06:06:34,919 DEBUG PropertyBinder: binding property state with lazy=false 06:06:34,919 DEBUG SimpleValueBinder: building SimpleValue for state 06:06:34,919 DEBUG PropertyBinder: Building property state 06:06:34,919 DEBUG PropertyBinder: Cascading state with null 06:06:34,919 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.approvedBy 06:06:34,920 DEBUG Ejb3Column: Binding column APPROVED_BY_USER_ID unique false 06:06:34,920 DEBUG PropertyBinder: Building property approvedBy 06:06:34,920 DEBUG PropertyBinder: Cascading approvedBy with none 06:06:34,920 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.approvalDatetime 06:06:34,920 DEBUG Ejb3Column: Binding column approvalDatetime unique false 06:06:34,920 DEBUG PropertyBinder: binding property approvalDatetime with lazy=false 06:06:34,920 DEBUG SimpleValueBinder: building SimpleValue for approvalDatetime 06:06:34,920 DEBUG PropertyBinder: Building property approvalDatetime 06:06:34,920 DEBUG PropertyBinder: Cascading approvalDatetime with null 06:06:34,920 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.created 06:06:34,920 DEBUG Ejb3Column: Binding column created unique false 06:06:34,921 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,921 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,921 DEBUG PropertyBinder: Building property created 06:06:34,921 DEBUG PropertyBinder: Cascading created with null 06:06:34,927 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,927 DEBUG EntityBinder: Import with entity name=Bid 06:06:34,927 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Bid per field access 06:06:34,931 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.id 06:06:34,931 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,931 DEBUG AnnotationBinder: id is an id 06:06:34,931 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,931 DEBUG PropertyBinder: Building property id 06:06:34,931 DEBUG PropertyBinder: Cascading id with null 06:06:34,931 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,931 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.amount 06:06:34,932 DEBUG Ejb3Column: Binding column AMOUNT unique false 06:06:34,932 DEBUG Ejb3Column: Binding column AMOUNT_CURRENCY unique false 06:06:34,932 DEBUG PropertyBinder: binding property amount with lazy=false 06:06:34,932 DEBUG SimpleValueBinder: building SimpleValue for amount 06:06:34,932 DEBUG PropertyBinder: Building property amount 06:06:34,932 DEBUG PropertyBinder: Cascading amount with null 06:06:34,932 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.item 06:06:34,932 DEBUG Ejb3Column: Binding column ITEM_ID unique false 06:06:34,932 DEBUG PropertyBinder: Building property item 06:06:34,932 DEBUG PropertyBinder: Cascading item with none 06:06:34,932 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.bidder 06:06:34,933 DEBUG Ejb3Column: Binding column BIDDER_ID unique false 06:06:34,935 DEBUG PropertyBinder: Building property bidder 06:06:34,935 DEBUG PropertyBinder: Cascading bidder with none 06:06:34,935 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.created 06:06:34,935 DEBUG Ejb3Column: Binding column created unique false 06:06:34,935 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,935 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,935 DEBUG PropertyBinder: Building property created 06:06:34,936 DEBUG PropertyBinder: Cascading created with null 06:06:34,937 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,937 DEBUG EntityBinder: Import with entity name=AuditLogRecord 06:06:34,937 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.persistence.audit.AuditLogRecord per field access 06:06:34,946 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.id 06:06:34,946 DEBUG Ejb3Column: Binding column AUDIT_LOG_ID unique false 06:06:34,946 DEBUG AnnotationBinder: id is an id 06:06:34,946 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,946 DEBUG PropertyBinder: Building property id 06:06:34,947 DEBUG PropertyBinder: Cascading id with null 06:06:34,947 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,947 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.message 06:06:34,947 DEBUG Ejb3Column: Binding column message unique false 06:06:34,947 DEBUG PropertyBinder: binding property message with lazy=false 06:06:34,947 DEBUG SimpleValueBinder: building SimpleValue for message 06:06:34,947 DEBUG PropertyBinder: Building property message 06:06:34,947 DEBUG PropertyBinder: Cascading message with null 06:06:34,947 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.entityId 06:06:34,949 DEBUG Ejb3Column: Binding column ENTITY_ID unique false 06:06:34,949 DEBUG PropertyBinder: binding property entityId with lazy=false 06:06:34,949 DEBUG SimpleValueBinder: building SimpleValue for entityId 06:06:34,949 DEBUG PropertyBinder: Building property entityId 06:06:34,949 DEBUG PropertyBinder: Cascading entityId with null 06:06:34,950 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.entityClass 06:06:34,950 DEBUG Ejb3Column: Binding column ENTITY_CLASS unique false 06:06:34,950 DEBUG PropertyBinder: binding property entityClass with lazy=false 06:06:34,950 DEBUG SimpleValueBinder: building SimpleValue for entityClass 06:06:34,950 DEBUG PropertyBinder: Building property entityClass 06:06:34,950 DEBUG PropertyBinder: Cascading entityClass with null 06:06:34,950 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.userId 06:06:34,950 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:34,950 DEBUG PropertyBinder: binding property userId with lazy=false 06:06:34,951 DEBUG SimpleValueBinder: building SimpleValue for userId 06:06:34,951 DEBUG PropertyBinder: Building property userId 06:06:34,951 DEBUG PropertyBinder: Cascading userId with null 06:06:34,951 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.created 06:06:34,951 DEBUG Ejb3Column: Binding column created unique false 06:06:34,951 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,951 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,951 DEBUG PropertyBinder: Building property created 06:06:34,951 DEBUG PropertyBinder: Cascading created with null 06:06:34,951 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:06:34,951 DEBUG AnnotationBinder: Joined column(s) created 06:06:34,952 DEBUG EntityBinder: Import with entity name=BankAccount 06:06:34,952 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.BankAccount per field access 06:06:34,957 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BankAccount.number 06:06:34,957 DEBUG Ejb3Column: Binding column BA_NUMBER unique false 06:06:34,957 DEBUG PropertyBinder: binding property number with lazy=false 06:06:34,957 DEBUG SimpleValueBinder: building SimpleValue for number 06:06:34,957 DEBUG PropertyBinder: Building property number 06:06:34,957 DEBUG PropertyBinder: Cascading number with null 06:06:34,957 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BankAccount.bankName 06:06:34,958 DEBUG Ejb3Column: Binding column BA_NAME unique false 06:06:34,958 DEBUG PropertyBinder: binding property bankName with lazy=false 06:06:34,958 DEBUG SimpleValueBinder: building SimpleValue for bankName 06:06:34,958 DEBUG PropertyBinder: Building property bankName 06:06:34,958 DEBUG PropertyBinder: Cascading bankName with null 06:06:34,958 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BankAccount.bankSwift 06:06:34,958 DEBUG Ejb3Column: Binding column BANK_SWIFT unique false 06:06:34,958 DEBUG PropertyBinder: binding property bankSwift with lazy=false 06:06:34,958 DEBUG SimpleValueBinder: building SimpleValue for bankSwift 06:06:34,958 DEBUG PropertyBinder: Building property bankSwift 06:06:34,959 DEBUG PropertyBinder: Cascading bankSwift with null 06:06:34,959 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,959 DEBUG EntityBinder: Import with entity name=CategorizedItem 06:06:34,959 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.CategorizedItem per field access 06:06:34,965 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.id 06:06:34,965 DEBUG Ejb3Column: Binding column id unique false 06:06:34,965 DEBUG AnnotationBinder: id is an id 06:06:34,967 DEBUG AnnotationBinder: Binding component with path: org.hibernate.ce.auction.model.CategorizedItem.id 06:06:34,970 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.CategorizedItem$Id per field access 06:06:34,972 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem$Id.categoryId 06:06:34,972 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,972 DEBUG PropertyBinder: binding property categoryId with lazy=false 06:06:34,972 DEBUG SimpleValueBinder: building SimpleValue for categoryId 06:06:34,972 DEBUG PropertyBinder: Building property categoryId 06:06:34,972 DEBUG PropertyBinder: Cascading categoryId with null 06:06:34,972 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem$Id.itemId 06:06:34,973 DEBUG Ejb3Column: Binding column ITEM_ID unique false 06:06:34,974 DEBUG PropertyBinder: binding property itemId with lazy=false 06:06:34,974 DEBUG SimpleValueBinder: building SimpleValue for itemId 06:06:34,974 DEBUG PropertyBinder: Building property itemId 06:06:34,974 DEBUG PropertyBinder: Cascading itemId with null 06:06:34,979 DEBUG PropertyBinder: Building property id 06:06:34,979 DEBUG PropertyBinder: Cascading id with null 06:06:34,980 DEBUG AnnotationBinder: Bind @Id on id 06:06:34,980 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.username 06:06:34,980 DEBUG Ejb3Column: Binding column ADDED_BY_USER unique false 06:06:34,980 DEBUG PropertyBinder: binding property username with lazy=false 06:06:34,980 DEBUG SimpleValueBinder: building SimpleValue for username 06:06:34,980 DEBUG PropertyBinder: Building property username 06:06:34,980 DEBUG PropertyBinder: Cascading username with null 06:06:34,980 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.dateAdded 06:06:34,980 DEBUG Ejb3Column: Binding column ADDED_ON unique false 06:06:34,980 DEBUG PropertyBinder: binding property dateAdded with lazy=false 06:06:34,980 DEBUG SimpleValueBinder: building SimpleValue for dateAdded 06:06:34,980 DEBUG PropertyBinder: Building property dateAdded 06:06:34,980 DEBUG PropertyBinder: Cascading dateAdded with null 06:06:34,981 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.item 06:06:34,981 DEBUG Ejb3Column: Binding column ITEM_ID unique false 06:06:34,981 DEBUG PropertyBinder: Building property item 06:06:34,981 DEBUG PropertyBinder: Cascading item with none 06:06:34,981 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.category 06:06:34,981 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,981 DEBUG PropertyBinder: Building property category 06:06:34,981 DEBUG PropertyBinder: Cascading category with none 06:06:34,982 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,982 DEBUG EntityBinder: Import with entity name=Comment 06:06:34,982 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Comment per field access 06:06:34,986 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.id 06:06:34,986 DEBUG Ejb3Column: Binding column COMMENT_ID unique false 06:06:34,986 DEBUG AnnotationBinder: id is an id 06:06:34,986 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,986 DEBUG PropertyBinder: Building property id 06:06:34,986 DEBUG PropertyBinder: Cascading id with null 06:06:34,986 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,987 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.version 06:06:34,987 DEBUG Ejb3Column: Binding column version unique false 06:06:34,987 DEBUG AnnotationBinder: version is a version property 06:06:34,987 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,987 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,987 DEBUG PropertyBinder: Building property version 06:06:34,987 DEBUG PropertyBinder: Cascading version with null 06:06:34,987 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,987 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.rating 06:06:34,987 DEBUG Ejb3Column: Binding column RATING unique false 06:06:34,987 DEBUG PropertyBinder: binding property rating with lazy=false 06:06:34,987 DEBUG SimpleValueBinder: building SimpleValue for rating 06:06:34,987 DEBUG PropertyBinder: Building property rating 06:06:34,987 DEBUG PropertyBinder: Cascading rating with null 06:06:34,987 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.text 06:06:34,988 DEBUG Ejb3Column: Binding column text unique false 06:06:34,988 DEBUG PropertyBinder: binding property text with lazy=false 06:06:34,988 DEBUG SimpleValueBinder: building SimpleValue for text 06:06:34,988 DEBUG PropertyBinder: Building property text 06:06:34,988 DEBUG PropertyBinder: Cascading text with null 06:06:34,988 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.fromUser 06:06:34,990 DEBUG Ejb3Column: Binding column FROM_USER_ID unique false 06:06:34,991 DEBUG PropertyBinder: Building property fromUser 06:06:34,991 DEBUG PropertyBinder: Cascading fromUser with none 06:06:34,991 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.item 06:06:34,991 DEBUG Ejb3Column: Binding column ABOUT_ITEM_ID unique false 06:06:34,991 DEBUG PropertyBinder: Building property item 06:06:34,992 DEBUG PropertyBinder: Cascading item with none 06:06:34,992 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.created 06:06:34,992 DEBUG Ejb3Column: Binding column created unique false 06:06:34,992 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,992 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,992 DEBUG PropertyBinder: Building property created 06:06:34,992 DEBUG PropertyBinder: Cascading created with null 06:06:34,993 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,993 DEBUG EntityBinder: Import with entity name=User 06:06:34,994 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.User per field access 06:06:35,005 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.id 06:06:35,006 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:35,006 DEBUG AnnotationBinder: id is an id 06:06:35,006 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:35,006 DEBUG PropertyBinder: Building property id 06:06:35,006 DEBUG PropertyBinder: Cascading id with null 06:06:35,006 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:35,006 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.version 06:06:35,006 DEBUG Ejb3Column: Binding column version unique false 06:06:35,006 DEBUG AnnotationBinder: version is a version property 06:06:35,006 DEBUG PropertyBinder: binding property version with lazy=false 06:06:35,006 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:35,007 DEBUG PropertyBinder: Building property version 06:06:35,007 DEBUG PropertyBinder: Cascading version with null 06:06:35,007 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:35,007 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.firstname 06:06:35,010 DEBUG Ejb3Column: Binding column firstname unique false 06:06:35,011 DEBUG PropertyBinder: binding property firstname with lazy=false 06:06:35,011 DEBUG SimpleValueBinder: building SimpleValue for firstname 06:06:35,011 DEBUG PropertyBinder: Building property firstname 06:06:35,011 DEBUG PropertyBinder: Cascading firstname with null 06:06:35,011 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.lastname 06:06:35,011 DEBUG Ejb3Column: Binding column lastname unique false 06:06:35,011 DEBUG PropertyBinder: binding property lastname with lazy=false 06:06:35,011 DEBUG SimpleValueBinder: building SimpleValue for lastname 06:06:35,011 DEBUG PropertyBinder: Building property lastname 06:06:35,011 DEBUG PropertyBinder: Cascading lastname with null 06:06:35,011 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.username 06:06:35,011 DEBUG Ejb3Column: Binding column username unique true 06:06:35,011 DEBUG PropertyBinder: binding property username with lazy=false 06:06:35,011 DEBUG SimpleValueBinder: building SimpleValue for username 06:06:35,011 DEBUG PropertyBinder: Building property username 06:06:35,012 DEBUG PropertyBinder: Cascading username with null 06:06:35,012 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.password 06:06:35,012 DEBUG Ejb3Column: Binding column 'PASSWORD' unique false 06:06:35,012 DEBUG PropertyBinder: binding property password with lazy=false 06:06:35,012 DEBUG SimpleValueBinder: building SimpleValue for password 06:06:35,012 DEBUG PropertyBinder: Building property password 06:06:35,012 DEBUG PropertyBinder: Cascading password with null 06:06:35,012 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.email 06:06:35,012 DEBUG Ejb3Column: Binding column email unique false 06:06:35,012 DEBUG PropertyBinder: binding property email with lazy=false 06:06:35,012 DEBUG SimpleValueBinder: building SimpleValue for email 06:06:35,012 DEBUG PropertyBinder: Building property email 06:06:35,012 DEBUG PropertyBinder: Cascading email with null 06:06:35,012 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.ranking 06:06:35,012 DEBUG Ejb3Column: Binding column ranking unique false 06:06:35,012 DEBUG PropertyBinder: binding property ranking with lazy=false 06:06:35,013 DEBUG SimpleValueBinder: building SimpleValue for ranking 06:06:35,013 DEBUG PropertyBinder: Building property ranking 06:06:35,013 DEBUG PropertyBinder: Cascading ranking with null 06:06:35,013 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.admin 06:06:35,013 DEBUG Ejb3Column: Binding column IS_ADMIN unique false 06:06:35,013 DEBUG PropertyBinder: binding property admin with lazy=false 06:06:35,013 DEBUG SimpleValueBinder: building SimpleValue for admin 06:06:35,013 DEBUG PropertyBinder: Building property admin 06:06:35,013 DEBUG PropertyBinder: Cascading admin with null 06:06:35,013 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.created 06:06:35,013 DEBUG Ejb3Column: Binding column created unique false 06:06:35,013 DEBUG PropertyBinder: binding property created with lazy=false 06:06:35,013 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:35,013 DEBUG PropertyBinder: Building property created 06:06:35,013 DEBUG PropertyBinder: Cascading created with null 06:06:35,013 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.address 06:06:35,013 DEBUG Ejb3Column: Binding column address unique false 06:06:35,014 DEBUG AnnotationBinder: Binding component with path: org.hibernate.ce.auction.model.User.address 06:06:35,014 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Address per field access 06:06:35,015 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Address.street 06:06:35,015 DEBUG Ejb3Column: Binding column street unique false 06:06:35,015 DEBUG PropertyBinder: binding property street with lazy=false 06:06:35,015 DEBUG SimpleValueBinder: building SimpleValue for street 06:06:35,015 DEBUG PropertyBinder: Building property street 06:06:35,015 DEBUG PropertyBinder: Cascading street with null 06:06:35,015 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Address.zipcode 06:06:35,015 DEBUG Ejb3Column: Binding column zipcode unique false 06:06:35,015 DEBUG PropertyBinder: binding property zipcode with lazy=false 06:06:35,015 DEBUG SimpleValueBinder: building SimpleValue for zipcode 06:06:35,015 DEBUG PropertyBinder: Building property zipcode 06:06:35,015 DEBUG PropertyBinder: Cascading zipcode with null 06:06:35,015 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Address.city 06:06:35,016 DEBUG Ejb3Column: Binding column city unique false 06:06:35,016 DEBUG PropertyBinder: binding property city with lazy=false 06:06:35,016 DEBUG SimpleValueBinder: building SimpleValue for city 06:06:35,016 DEBUG PropertyBinder: Building property city 06:06:35,016 DEBUG PropertyBinder: Cascading city with null 06:06:35,016 DEBUG PropertyBinder: Building property address 06:06:35,016 DEBUG PropertyBinder: Cascading address with null 06:06:35,016 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.items 06:06:35,017 DEBUG Ejb3Column: Binding column null unique false 06:06:35,017 DEBUG Ejb3Column: Binding column null unique false 06:06:35,019 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.User.items through a foreign key 06:06:35,021 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.User.items 06:06:35,021 DEBUG PropertyBinder: Building property items 06:06:35,021 DEBUG PropertyBinder: Cascading items with none 06:06:35,021 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.billingDetails 06:06:35,022 DEBUG Ejb3Column: Binding column null unique false 06:06:35,022 DEBUG Ejb3Column: Binding column null unique false 06:06:35,022 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.User.billingDetails through a foreign key 06:06:35,022 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.User.billingDetails 06:06:35,022 DEBUG PropertyBinder: Building property billingDetails 06:06:35,022 DEBUG PropertyBinder: Cascading billingDetails with all 06:06:35,022 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.defaultBillingDetails 06:06:35,022 DEBUG Ejb3Column: Binding column DEFAULT_BILLINGDETAILS_ID unique false 06:06:35,022 DEBUG PropertyBinder: Building property defaultBillingDetails 06:06:35,022 DEBUG PropertyBinder: Cascading defaultBillingDetails with none 06:06:35,024 DEBUG AnnotationConfiguration: processing manytoone fk mappings 06:06:35,143 INFO Configuration: processing extends queue 06:06:35,143 INFO Configuration: processing collection mappings 06:06:35,187 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.Category.categorizedItems 06:06:35,187 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.Category.categorizedItems -> CATEGORIZED_ITEM 06:06:35,188 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.CategorizedItem.category 06:06:35,189 DEBUG HbmBinder: Mapped collection key: CAT_ID, one-to-many: org.hibernate.ce.auction.model.CategorizedItem 06:06:35,189 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.Item.categorizedItems 06:06:35,189 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.Item.categorizedItems -> CATEGORIZED_ITEM 06:06:35,189 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.CategorizedItem.item 06:06:35,189 DEBUG HbmBinder: Mapped collection key: ITEM_ID, one-to-many: org.hibernate.ce.auction.model.CategorizedItem 06:06:35,189 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.Item.bids 06:06:35,189 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.Item.bids -> BID 06:06:35,189 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.Bid.item 06:06:35,190 DEBUG HbmBinder: Mapped collection key: ITEM_ID, one-to-many: org.hibernate.ce.auction.model.Bid 06:06:35,190 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.User.items 06:06:35,190 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.User.items -> ITEM 06:06:35,190 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.Item.seller 06:06:35,190 DEBUG HbmBinder: Mapped collection key: SELLER_ID, one-to-many: org.hibernate.ce.auction.model.Item 06:06:35,190 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.User.billingDetails 06:06:35,190 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.User.billingDetails -> BILLING_DETAILS 06:06:35,190 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.BillingDetails.user 06:06:35,190 DEBUG HbmBinder: Mapped collection key: USER_ID, one-to-many: org.hibernate.ce.auction.model.BillingDetails 06:06:35,190 INFO Configuration: processing association property references 06:06:35,190 INFO Configuration: processing foreign key constraints 06:06:35,190 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Category 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Bid 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,240 DEBUG Configuration: Preparing to build session factory with filters : {} 06:06:35,240 DEBUG AnnotationConfiguration: Executing first pass of annotated classes 06:06:35,240 DEBUG AnnotationConfiguration: processing manytoone fk mappings 06:06:35,240 INFO Configuration: processing extends queue 06:06:35,240 INFO Configuration: processing collection mappings 06:06:35,241 INFO Configuration: processing association property references 06:06:35,241 INFO Configuration: processing foreign key constraints 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Category 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Bid 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,327 WARN UserSuppliedConnectionProvider: No connection properties specified - the user must supply JDBC connections 06:06:35,338 ERROR Ejb3Util: Building EntityManagerFactory failed. javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:199) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) at org.hibernate.ce.auction.persistence.Ejb3Util.<clinit>(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.initData(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.testEjbQl(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.ce.auction.test.Ejb3Test.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)

    Hibernate JIRA | 1 decade ago | Christian Bauer
    javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
  2. 0

    My hibernate.cfg.xml is ignored. I suggest we finally get some real tests of EM configuration before we let people use this stuff. persistence.xml: <entity-manager> <name>caveatemptor</name> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml"/> </properties> </entity-manager> ------------- Standard Output --------------- Running test... 06:06:33,649 DEBUG HibernatePersistence: Analyse of persistence.xml: file:/Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes/META-INF/persistence.xml 06:06:33,749 DEBUG JarVisitor: Searching mapped entities in jar/par: /Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes 06:06:33,932 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CreditCard 06:06:33,974 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Category 06:06:33,997 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Item 06:06:34,010 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Bid 06:06:34,027 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem$Id 06:06:34,034 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.persistence.audit.AuditLogRecord 06:06:34,038 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Address 06:06:34,051 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BankAccount 06:06:34,055 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BillingDetails 06:06:34,077 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.NodeInfo 06:06:34,081 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem 06:06:34,089 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Comment 06:06:34,100 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.User 06:06:34,106 DEBUG HibernatePersistence: Creating Factory: caveatemptor 06:06:34,168 INFO Environment: Hibernate 3.1 beta 2 06:06:34,169 INFO Environment: hibernate.properties not found 06:06:34,172 INFO Environment: using CGLIB reflection optimizer 06:06:34,175 INFO Environment: using JDK 1.4 java.sql.Timestamp handling 06:06:34,298 INFO AnnotationConfiguration: Mapping package org.hibernate.ce.auction.persistence 06:06:34,487 DEBUG Mappings: Added monetary_amount_usd with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:06:34,487 DEBUG Mappings: Added monetary_amount_eur with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:06:34,487 DEBUG Mappings: Added item_state with class org.hibernate.ce.auction.persistence.EnumUserType 06:06:34,488 DEBUG Mappings: Added creditcard_type with class org.hibernate.ce.auction.persistence.EnumUserType 06:06:34,488 DEBUG Mappings: Added rating with class org.hibernate.ce.auction.persistence.EnumUserType 06:06:34,491 DEBUG AnnotationConfiguration: Executing first pass of annotated classes 06:06:34,595 DEBUG EntityBinder: Import with entity name=BillingDetails 06:06:34,623 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.BillingDetails per field access 06:06:34,666 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.id 06:06:34,670 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:06:34,681 DEBUG AnnotationBinder: id is an id 06:06:34,691 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,695 DEBUG PropertyBinder: Building property id 06:06:34,699 DEBUG PropertyBinder: Cascading id with null 06:06:34,700 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,700 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.version 06:06:34,703 DEBUG Ejb3Column: Binding column version unique false 06:06:34,703 DEBUG AnnotationBinder: version is a version property 06:06:34,703 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,703 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,703 DEBUG PropertyBinder: Building property version 06:06:34,703 DEBUG PropertyBinder: Cascading version with null 06:06:34,704 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,704 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.ownerName 06:06:34,704 DEBUG Ejb3Column: Binding column OWNER_NAME unique false 06:06:34,707 DEBUG PropertyBinder: binding property ownerName with lazy=false 06:06:34,707 DEBUG SimpleValueBinder: building SimpleValue for ownerName 06:06:34,707 DEBUG PropertyBinder: Building property ownerName 06:06:34,707 DEBUG PropertyBinder: Cascading ownerName with null 06:06:34,707 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.user 06:06:34,709 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:34,719 DEBUG PropertyBinder: Building property user 06:06:34,719 DEBUG PropertyBinder: Cascading user with none 06:06:34,720 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.created 06:06:34,720 DEBUG Ejb3Column: Binding column created unique false 06:06:34,720 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,720 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,720 DEBUG PropertyBinder: Building property created 06:06:34,720 DEBUG PropertyBinder: Cascading created with null 06:06:34,732 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:06:34,732 DEBUG AnnotationBinder: Joined column(s) created 06:06:34,734 DEBUG EntityBinder: Import with entity name=CreditCard 06:06:34,771 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.CreditCard per field access 06:06:34,781 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.type 06:06:34,781 DEBUG Ejb3Column: Binding column CC_TYPE unique false 06:06:34,783 DEBUG PropertyBinder: binding property type with lazy=false 06:06:34,783 DEBUG SimpleValueBinder: building SimpleValue for type 06:06:34,783 DEBUG PropertyBinder: Building property type 06:06:34,783 DEBUG PropertyBinder: Cascading type with null 06:06:34,784 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.number 06:06:34,784 DEBUG Ejb3Column: Binding column CC_NUMBER unique false 06:06:34,784 DEBUG PropertyBinder: binding property number with lazy=false 06:06:34,784 DEBUG SimpleValueBinder: building SimpleValue for number 06:06:34,784 DEBUG PropertyBinder: Building property number 06:06:34,784 DEBUG PropertyBinder: Cascading number with null 06:06:34,784 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.expMonth 06:06:34,784 DEBUG Ejb3Column: Binding column EXP_MONTH unique false 06:06:34,784 DEBUG PropertyBinder: binding property expMonth with lazy=false 06:06:34,784 DEBUG SimpleValueBinder: building SimpleValue for expMonth 06:06:34,785 DEBUG PropertyBinder: Building property expMonth 06:06:34,786 DEBUG PropertyBinder: Cascading expMonth with null 06:06:34,786 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CreditCard.expYear 06:06:34,786 DEBUG Ejb3Column: Binding column EXP_YEAR unique false 06:06:34,786 DEBUG PropertyBinder: binding property expYear with lazy=false 06:06:34,786 DEBUG SimpleValueBinder: building SimpleValue for expYear 06:06:34,786 DEBUG PropertyBinder: Building property expYear 06:06:34,786 DEBUG PropertyBinder: Cascading expYear with null 06:06:34,791 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,791 DEBUG EntityBinder: Import with entity name=Category 06:06:34,791 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Category per field access 06:06:34,837 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.id 06:06:34,837 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,837 DEBUG AnnotationBinder: id is an id 06:06:34,837 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,837 DEBUG PropertyBinder: Building property id 06:06:34,837 DEBUG PropertyBinder: Cascading id with null 06:06:34,837 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,837 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.version 06:06:34,837 DEBUG Ejb3Column: Binding column version unique false 06:06:34,838 DEBUG AnnotationBinder: version is a version property 06:06:34,838 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,838 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,838 DEBUG PropertyBinder: Building property version 06:06:34,838 DEBUG PropertyBinder: Cascading version with null 06:06:34,838 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,838 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.name 06:06:34,838 DEBUG Ejb3Column: Binding column CAT_NAME unique false 06:06:34,838 DEBUG PropertyBinder: binding property name with lazy=false 06:06:34,838 DEBUG SimpleValueBinder: building SimpleValue for name 06:06:34,838 DEBUG PropertyBinder: Building property name 06:06:34,838 DEBUG PropertyBinder: Cascading name with null 06:06:34,840 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.categorizedItems 06:06:34,840 DEBUG Ejb3Column: Binding column null unique false 06:06:34,844 DEBUG Ejb3Column: Binding column null unique false 06:06:34,868 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.Category.categorizedItems through a foreign key 06:06:34,871 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.Category.categorizedItems 06:06:34,873 DEBUG PropertyBinder: Building property categorizedItems 06:06:34,873 DEBUG PropertyBinder: Cascading categorizedItems with all,delete-orphan 06:06:34,873 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Category.created 06:06:34,874 DEBUG Ejb3Column: Binding column created unique false 06:06:34,874 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,874 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,874 DEBUG PropertyBinder: Building property created 06:06:34,874 DEBUG PropertyBinder: Cascading created with null 06:06:34,877 DEBUG QueryBinder: Named query minBid => select b from Bid b where b.amount.value = (select min(b.amount.value) from Bid b where b.item.id = :itemid) 06:06:34,877 DEBUG QueryBinder: Named query maxBid => select b from Bid b where b.amount.value = (select max(b.amount.value) from Bid b where b.item.id = :itemid) 06:06:34,877 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,878 DEBUG EntityBinder: Import with entity name=Item 06:06:34,878 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Item per field access 06:06:34,904 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.id 06:06:34,904 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:34,905 DEBUG AnnotationBinder: id is an id 06:06:34,905 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,905 DEBUG PropertyBinder: Building property id 06:06:34,905 DEBUG PropertyBinder: Cascading id with null 06:06:34,905 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,905 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.version 06:06:34,905 DEBUG Ejb3Column: Binding column version unique false 06:06:34,905 DEBUG AnnotationBinder: version is a version property 06:06:34,905 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,905 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,905 DEBUG PropertyBinder: Building property version 06:06:34,906 DEBUG PropertyBinder: Cascading version with null 06:06:34,906 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,906 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.name 06:06:34,907 DEBUG Ejb3Column: Binding column name unique false 06:06:34,907 DEBUG PropertyBinder: binding property name with lazy=false 06:06:34,907 DEBUG SimpleValueBinder: building SimpleValue for name 06:06:34,908 DEBUG PropertyBinder: Building property name 06:06:34,908 DEBUG PropertyBinder: Cascading name with null 06:06:34,908 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.seller 06:06:34,908 DEBUG Ejb3Column: Binding column SELLER_ID unique false 06:06:34,908 DEBUG PropertyBinder: Building property seller 06:06:34,908 DEBUG PropertyBinder: Cascading seller with none 06:06:34,908 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.description 06:06:34,908 DEBUG Ejb3Column: Binding column description unique false 06:06:34,909 DEBUG PropertyBinder: binding property description with lazy=false 06:06:34,909 DEBUG SimpleValueBinder: building SimpleValue for description 06:06:34,909 DEBUG PropertyBinder: Building property description 06:06:34,909 DEBUG PropertyBinder: Cascading description with null 06:06:34,909 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.initialPrice 06:06:34,909 DEBUG Ejb3Column: Binding column INITIAL_PRICE unique false 06:06:34,909 DEBUG Ejb3Column: Binding column INITIAL_PRICE_CURRENCY unique false 06:06:34,909 DEBUG PropertyBinder: binding property initialPrice with lazy=false 06:06:34,910 DEBUG SimpleValueBinder: building SimpleValue for initialPrice 06:06:34,910 DEBUG PropertyBinder: Building property initialPrice 06:06:34,910 DEBUG PropertyBinder: Cascading initialPrice with null 06:06:34,910 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.reservePrice 06:06:34,910 DEBUG Ejb3Column: Binding column RESERVE_PRICE unique false 06:06:34,912 DEBUG Ejb3Column: Binding column RESERVE_PRICE_CURRENCY unique false 06:06:34,912 DEBUG PropertyBinder: binding property reservePrice with lazy=false 06:06:34,913 DEBUG SimpleValueBinder: building SimpleValue for reservePrice 06:06:34,913 DEBUG PropertyBinder: Building property reservePrice 06:06:34,913 DEBUG PropertyBinder: Cascading reservePrice with null 06:06:34,913 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.startDate 06:06:34,913 DEBUG Ejb3Column: Binding column startDate unique false 06:06:34,914 DEBUG PropertyBinder: binding property startDate with lazy=false 06:06:34,914 DEBUG SimpleValueBinder: building SimpleValue for startDate 06:06:34,914 DEBUG PropertyBinder: Building property startDate 06:06:34,914 DEBUG PropertyBinder: Cascading startDate with null 06:06:34,915 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.endDate 06:06:34,915 DEBUG Ejb3Column: Binding column endDate unique false 06:06:34,915 DEBUG PropertyBinder: binding property endDate with lazy=false 06:06:34,915 DEBUG SimpleValueBinder: building SimpleValue for endDate 06:06:34,915 DEBUG PropertyBinder: Building property endDate 06:06:34,915 DEBUG PropertyBinder: Cascading endDate with null 06:06:34,915 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.categorizedItems 06:06:34,915 DEBUG Ejb3Column: Binding column null unique false 06:06:34,915 DEBUG Ejb3Column: Binding column null unique false 06:06:34,916 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.Item.categorizedItems through a foreign key 06:06:34,916 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.Item.categorizedItems 06:06:34,916 DEBUG PropertyBinder: Building property categorizedItems 06:06:34,916 DEBUG PropertyBinder: Cascading categorizedItems with all,delete-orphan 06:06:34,916 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.bids 06:06:34,916 DEBUG Ejb3Column: Binding column null unique false 06:06:34,916 DEBUG Ejb3Column: Binding column null unique false 06:06:34,918 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.Item.bids through a foreign key 06:06:34,918 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.Item.bids 06:06:34,918 DEBUG PropertyBinder: Building property bids 06:06:34,918 DEBUG PropertyBinder: Cascading bids with all,delete-orphan 06:06:34,918 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.successfulBid 06:06:34,919 DEBUG Ejb3Column: Binding column SUCCESSFUL_BID_ID unique false 06:06:34,919 DEBUG PropertyBinder: Building property successfulBid 06:06:34,919 DEBUG PropertyBinder: Cascading successfulBid with none 06:06:34,919 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.state 06:06:34,919 DEBUG Ejb3Column: Binding column ITEM_STATE unique false 06:06:34,919 DEBUG PropertyBinder: binding property state with lazy=false 06:06:34,919 DEBUG SimpleValueBinder: building SimpleValue for state 06:06:34,919 DEBUG PropertyBinder: Building property state 06:06:34,919 DEBUG PropertyBinder: Cascading state with null 06:06:34,919 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.approvedBy 06:06:34,920 DEBUG Ejb3Column: Binding column APPROVED_BY_USER_ID unique false 06:06:34,920 DEBUG PropertyBinder: Building property approvedBy 06:06:34,920 DEBUG PropertyBinder: Cascading approvedBy with none 06:06:34,920 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.approvalDatetime 06:06:34,920 DEBUG Ejb3Column: Binding column approvalDatetime unique false 06:06:34,920 DEBUG PropertyBinder: binding property approvalDatetime with lazy=false 06:06:34,920 DEBUG SimpleValueBinder: building SimpleValue for approvalDatetime 06:06:34,920 DEBUG PropertyBinder: Building property approvalDatetime 06:06:34,920 DEBUG PropertyBinder: Cascading approvalDatetime with null 06:06:34,920 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Item.created 06:06:34,920 DEBUG Ejb3Column: Binding column created unique false 06:06:34,921 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,921 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,921 DEBUG PropertyBinder: Building property created 06:06:34,921 DEBUG PropertyBinder: Cascading created with null 06:06:34,927 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,927 DEBUG EntityBinder: Import with entity name=Bid 06:06:34,927 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Bid per field access 06:06:34,931 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.id 06:06:34,931 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,931 DEBUG AnnotationBinder: id is an id 06:06:34,931 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,931 DEBUG PropertyBinder: Building property id 06:06:34,931 DEBUG PropertyBinder: Cascading id with null 06:06:34,931 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,931 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.amount 06:06:34,932 DEBUG Ejb3Column: Binding column AMOUNT unique false 06:06:34,932 DEBUG Ejb3Column: Binding column AMOUNT_CURRENCY unique false 06:06:34,932 DEBUG PropertyBinder: binding property amount with lazy=false 06:06:34,932 DEBUG SimpleValueBinder: building SimpleValue for amount 06:06:34,932 DEBUG PropertyBinder: Building property amount 06:06:34,932 DEBUG PropertyBinder: Cascading amount with null 06:06:34,932 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.item 06:06:34,932 DEBUG Ejb3Column: Binding column ITEM_ID unique false 06:06:34,932 DEBUG PropertyBinder: Building property item 06:06:34,932 DEBUG PropertyBinder: Cascading item with none 06:06:34,932 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.bidder 06:06:34,933 DEBUG Ejb3Column: Binding column BIDDER_ID unique false 06:06:34,935 DEBUG PropertyBinder: Building property bidder 06:06:34,935 DEBUG PropertyBinder: Cascading bidder with none 06:06:34,935 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Bid.created 06:06:34,935 DEBUG Ejb3Column: Binding column created unique false 06:06:34,935 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,935 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,935 DEBUG PropertyBinder: Building property created 06:06:34,936 DEBUG PropertyBinder: Cascading created with null 06:06:34,937 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,937 DEBUG EntityBinder: Import with entity name=AuditLogRecord 06:06:34,937 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.persistence.audit.AuditLogRecord per field access 06:06:34,946 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.id 06:06:34,946 DEBUG Ejb3Column: Binding column AUDIT_LOG_ID unique false 06:06:34,946 DEBUG AnnotationBinder: id is an id 06:06:34,946 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,946 DEBUG PropertyBinder: Building property id 06:06:34,947 DEBUG PropertyBinder: Cascading id with null 06:06:34,947 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,947 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.message 06:06:34,947 DEBUG Ejb3Column: Binding column message unique false 06:06:34,947 DEBUG PropertyBinder: binding property message with lazy=false 06:06:34,947 DEBUG SimpleValueBinder: building SimpleValue for message 06:06:34,947 DEBUG PropertyBinder: Building property message 06:06:34,947 DEBUG PropertyBinder: Cascading message with null 06:06:34,947 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.entityId 06:06:34,949 DEBUG Ejb3Column: Binding column ENTITY_ID unique false 06:06:34,949 DEBUG PropertyBinder: binding property entityId with lazy=false 06:06:34,949 DEBUG SimpleValueBinder: building SimpleValue for entityId 06:06:34,949 DEBUG PropertyBinder: Building property entityId 06:06:34,949 DEBUG PropertyBinder: Cascading entityId with null 06:06:34,950 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.entityClass 06:06:34,950 DEBUG Ejb3Column: Binding column ENTITY_CLASS unique false 06:06:34,950 DEBUG PropertyBinder: binding property entityClass with lazy=false 06:06:34,950 DEBUG SimpleValueBinder: building SimpleValue for entityClass 06:06:34,950 DEBUG PropertyBinder: Building property entityClass 06:06:34,950 DEBUG PropertyBinder: Cascading entityClass with null 06:06:34,950 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.userId 06:06:34,950 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:34,950 DEBUG PropertyBinder: binding property userId with lazy=false 06:06:34,951 DEBUG SimpleValueBinder: building SimpleValue for userId 06:06:34,951 DEBUG PropertyBinder: Building property userId 06:06:34,951 DEBUG PropertyBinder: Cascading userId with null 06:06:34,951 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.persistence.audit.AuditLogRecord.created 06:06:34,951 DEBUG Ejb3Column: Binding column created unique false 06:06:34,951 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,951 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,951 DEBUG PropertyBinder: Building property created 06:06:34,951 DEBUG PropertyBinder: Cascading created with null 06:06:34,951 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:06:34,951 DEBUG AnnotationBinder: Joined column(s) created 06:06:34,952 DEBUG EntityBinder: Import with entity name=BankAccount 06:06:34,952 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.BankAccount per field access 06:06:34,957 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BankAccount.number 06:06:34,957 DEBUG Ejb3Column: Binding column BA_NUMBER unique false 06:06:34,957 DEBUG PropertyBinder: binding property number with lazy=false 06:06:34,957 DEBUG SimpleValueBinder: building SimpleValue for number 06:06:34,957 DEBUG PropertyBinder: Building property number 06:06:34,957 DEBUG PropertyBinder: Cascading number with null 06:06:34,957 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BankAccount.bankName 06:06:34,958 DEBUG Ejb3Column: Binding column BA_NAME unique false 06:06:34,958 DEBUG PropertyBinder: binding property bankName with lazy=false 06:06:34,958 DEBUG SimpleValueBinder: building SimpleValue for bankName 06:06:34,958 DEBUG PropertyBinder: Building property bankName 06:06:34,958 DEBUG PropertyBinder: Cascading bankName with null 06:06:34,958 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BankAccount.bankSwift 06:06:34,958 DEBUG Ejb3Column: Binding column BANK_SWIFT unique false 06:06:34,958 DEBUG PropertyBinder: binding property bankSwift with lazy=false 06:06:34,958 DEBUG SimpleValueBinder: building SimpleValue for bankSwift 06:06:34,958 DEBUG PropertyBinder: Building property bankSwift 06:06:34,959 DEBUG PropertyBinder: Cascading bankSwift with null 06:06:34,959 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,959 DEBUG EntityBinder: Import with entity name=CategorizedItem 06:06:34,959 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.CategorizedItem per field access 06:06:34,965 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.id 06:06:34,965 DEBUG Ejb3Column: Binding column id unique false 06:06:34,965 DEBUG AnnotationBinder: id is an id 06:06:34,967 DEBUG AnnotationBinder: Binding component with path: org.hibernate.ce.auction.model.CategorizedItem.id 06:06:34,970 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.CategorizedItem$Id per field access 06:06:34,972 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem$Id.categoryId 06:06:34,972 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,972 DEBUG PropertyBinder: binding property categoryId with lazy=false 06:06:34,972 DEBUG SimpleValueBinder: building SimpleValue for categoryId 06:06:34,972 DEBUG PropertyBinder: Building property categoryId 06:06:34,972 DEBUG PropertyBinder: Cascading categoryId with null 06:06:34,972 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem$Id.itemId 06:06:34,973 DEBUG Ejb3Column: Binding column ITEM_ID unique false 06:06:34,974 DEBUG PropertyBinder: binding property itemId with lazy=false 06:06:34,974 DEBUG SimpleValueBinder: building SimpleValue for itemId 06:06:34,974 DEBUG PropertyBinder: Building property itemId 06:06:34,974 DEBUG PropertyBinder: Cascading itemId with null 06:06:34,979 DEBUG PropertyBinder: Building property id 06:06:34,979 DEBUG PropertyBinder: Cascading id with null 06:06:34,980 DEBUG AnnotationBinder: Bind @Id on id 06:06:34,980 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.username 06:06:34,980 DEBUG Ejb3Column: Binding column ADDED_BY_USER unique false 06:06:34,980 DEBUG PropertyBinder: binding property username with lazy=false 06:06:34,980 DEBUG SimpleValueBinder: building SimpleValue for username 06:06:34,980 DEBUG PropertyBinder: Building property username 06:06:34,980 DEBUG PropertyBinder: Cascading username with null 06:06:34,980 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.dateAdded 06:06:34,980 DEBUG Ejb3Column: Binding column ADDED_ON unique false 06:06:34,980 DEBUG PropertyBinder: binding property dateAdded with lazy=false 06:06:34,980 DEBUG SimpleValueBinder: building SimpleValue for dateAdded 06:06:34,980 DEBUG PropertyBinder: Building property dateAdded 06:06:34,980 DEBUG PropertyBinder: Cascading dateAdded with null 06:06:34,981 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.item 06:06:34,981 DEBUG Ejb3Column: Binding column ITEM_ID unique false 06:06:34,981 DEBUG PropertyBinder: Building property item 06:06:34,981 DEBUG PropertyBinder: Cascading item with none 06:06:34,981 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.CategorizedItem.category 06:06:34,981 DEBUG Ejb3Column: Binding column CAT_ID unique false 06:06:34,981 DEBUG PropertyBinder: Building property category 06:06:34,981 DEBUG PropertyBinder: Cascading category with none 06:06:34,982 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,982 DEBUG EntityBinder: Import with entity name=Comment 06:06:34,982 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Comment per field access 06:06:34,986 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.id 06:06:34,986 DEBUG Ejb3Column: Binding column COMMENT_ID unique false 06:06:34,986 DEBUG AnnotationBinder: id is an id 06:06:34,986 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:34,986 DEBUG PropertyBinder: Building property id 06:06:34,986 DEBUG PropertyBinder: Cascading id with null 06:06:34,986 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:34,987 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.version 06:06:34,987 DEBUG Ejb3Column: Binding column version unique false 06:06:34,987 DEBUG AnnotationBinder: version is a version property 06:06:34,987 DEBUG PropertyBinder: binding property version with lazy=false 06:06:34,987 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:34,987 DEBUG PropertyBinder: Building property version 06:06:34,987 DEBUG PropertyBinder: Cascading version with null 06:06:34,987 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:34,987 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.rating 06:06:34,987 DEBUG Ejb3Column: Binding column RATING unique false 06:06:34,987 DEBUG PropertyBinder: binding property rating with lazy=false 06:06:34,987 DEBUG SimpleValueBinder: building SimpleValue for rating 06:06:34,987 DEBUG PropertyBinder: Building property rating 06:06:34,987 DEBUG PropertyBinder: Cascading rating with null 06:06:34,987 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.text 06:06:34,988 DEBUG Ejb3Column: Binding column text unique false 06:06:34,988 DEBUG PropertyBinder: binding property text with lazy=false 06:06:34,988 DEBUG SimpleValueBinder: building SimpleValue for text 06:06:34,988 DEBUG PropertyBinder: Building property text 06:06:34,988 DEBUG PropertyBinder: Cascading text with null 06:06:34,988 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.fromUser 06:06:34,990 DEBUG Ejb3Column: Binding column FROM_USER_ID unique false 06:06:34,991 DEBUG PropertyBinder: Building property fromUser 06:06:34,991 DEBUG PropertyBinder: Cascading fromUser with none 06:06:34,991 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.item 06:06:34,991 DEBUG Ejb3Column: Binding column ABOUT_ITEM_ID unique false 06:06:34,991 DEBUG PropertyBinder: Building property item 06:06:34,992 DEBUG PropertyBinder: Cascading item with none 06:06:34,992 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Comment.created 06:06:34,992 DEBUG Ejb3Column: Binding column created unique false 06:06:34,992 DEBUG PropertyBinder: binding property created with lazy=false 06:06:34,992 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:34,992 DEBUG PropertyBinder: Building property created 06:06:34,992 DEBUG PropertyBinder: Cascading created with null 06:06:34,993 DEBUG Ejb3Column: Binding column TYPE unique false 06:06:34,993 DEBUG EntityBinder: Import with entity name=User 06:06:34,994 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.User per field access 06:06:35,005 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.id 06:06:35,006 DEBUG Ejb3Column: Binding column USER_ID unique false 06:06:35,006 DEBUG AnnotationBinder: id is an id 06:06:35,006 DEBUG SimpleValueBinder: building SimpleValue for id 06:06:35,006 DEBUG PropertyBinder: Building property id 06:06:35,006 DEBUG PropertyBinder: Cascading id with null 06:06:35,006 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:06:35,006 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.version 06:06:35,006 DEBUG Ejb3Column: Binding column version unique false 06:06:35,006 DEBUG AnnotationBinder: version is a version property 06:06:35,006 DEBUG PropertyBinder: binding property version with lazy=false 06:06:35,006 DEBUG SimpleValueBinder: building SimpleValue for version 06:06:35,007 DEBUG PropertyBinder: Building property version 06:06:35,007 DEBUG PropertyBinder: Cascading version with null 06:06:35,007 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:06:35,007 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.firstname 06:06:35,010 DEBUG Ejb3Column: Binding column firstname unique false 06:06:35,011 DEBUG PropertyBinder: binding property firstname with lazy=false 06:06:35,011 DEBUG SimpleValueBinder: building SimpleValue for firstname 06:06:35,011 DEBUG PropertyBinder: Building property firstname 06:06:35,011 DEBUG PropertyBinder: Cascading firstname with null 06:06:35,011 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.lastname 06:06:35,011 DEBUG Ejb3Column: Binding column lastname unique false 06:06:35,011 DEBUG PropertyBinder: binding property lastname with lazy=false 06:06:35,011 DEBUG SimpleValueBinder: building SimpleValue for lastname 06:06:35,011 DEBUG PropertyBinder: Building property lastname 06:06:35,011 DEBUG PropertyBinder: Cascading lastname with null 06:06:35,011 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.username 06:06:35,011 DEBUG Ejb3Column: Binding column username unique true 06:06:35,011 DEBUG PropertyBinder: binding property username with lazy=false 06:06:35,011 DEBUG SimpleValueBinder: building SimpleValue for username 06:06:35,011 DEBUG PropertyBinder: Building property username 06:06:35,012 DEBUG PropertyBinder: Cascading username with null 06:06:35,012 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.password 06:06:35,012 DEBUG Ejb3Column: Binding column 'PASSWORD' unique false 06:06:35,012 DEBUG PropertyBinder: binding property password with lazy=false 06:06:35,012 DEBUG SimpleValueBinder: building SimpleValue for password 06:06:35,012 DEBUG PropertyBinder: Building property password 06:06:35,012 DEBUG PropertyBinder: Cascading password with null 06:06:35,012 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.email 06:06:35,012 DEBUG Ejb3Column: Binding column email unique false 06:06:35,012 DEBUG PropertyBinder: binding property email with lazy=false 06:06:35,012 DEBUG SimpleValueBinder: building SimpleValue for email 06:06:35,012 DEBUG PropertyBinder: Building property email 06:06:35,012 DEBUG PropertyBinder: Cascading email with null 06:06:35,012 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.ranking 06:06:35,012 DEBUG Ejb3Column: Binding column ranking unique false 06:06:35,012 DEBUG PropertyBinder: binding property ranking with lazy=false 06:06:35,013 DEBUG SimpleValueBinder: building SimpleValue for ranking 06:06:35,013 DEBUG PropertyBinder: Building property ranking 06:06:35,013 DEBUG PropertyBinder: Cascading ranking with null 06:06:35,013 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.admin 06:06:35,013 DEBUG Ejb3Column: Binding column IS_ADMIN unique false 06:06:35,013 DEBUG PropertyBinder: binding property admin with lazy=false 06:06:35,013 DEBUG SimpleValueBinder: building SimpleValue for admin 06:06:35,013 DEBUG PropertyBinder: Building property admin 06:06:35,013 DEBUG PropertyBinder: Cascading admin with null 06:06:35,013 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.created 06:06:35,013 DEBUG Ejb3Column: Binding column created unique false 06:06:35,013 DEBUG PropertyBinder: binding property created with lazy=false 06:06:35,013 DEBUG SimpleValueBinder: building SimpleValue for created 06:06:35,013 DEBUG PropertyBinder: Building property created 06:06:35,013 DEBUG PropertyBinder: Cascading created with null 06:06:35,013 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.address 06:06:35,013 DEBUG Ejb3Column: Binding column address unique false 06:06:35,014 DEBUG AnnotationBinder: Binding component with path: org.hibernate.ce.auction.model.User.address 06:06:35,014 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.Address per field access 06:06:35,015 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Address.street 06:06:35,015 DEBUG Ejb3Column: Binding column street unique false 06:06:35,015 DEBUG PropertyBinder: binding property street with lazy=false 06:06:35,015 DEBUG SimpleValueBinder: building SimpleValue for street 06:06:35,015 DEBUG PropertyBinder: Building property street 06:06:35,015 DEBUG PropertyBinder: Cascading street with null 06:06:35,015 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Address.zipcode 06:06:35,015 DEBUG Ejb3Column: Binding column zipcode unique false 06:06:35,015 DEBUG PropertyBinder: binding property zipcode with lazy=false 06:06:35,015 DEBUG SimpleValueBinder: building SimpleValue for zipcode 06:06:35,015 DEBUG PropertyBinder: Building property zipcode 06:06:35,015 DEBUG PropertyBinder: Cascading zipcode with null 06:06:35,015 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.Address.city 06:06:35,016 DEBUG Ejb3Column: Binding column city unique false 06:06:35,016 DEBUG PropertyBinder: binding property city with lazy=false 06:06:35,016 DEBUG SimpleValueBinder: building SimpleValue for city 06:06:35,016 DEBUG PropertyBinder: Building property city 06:06:35,016 DEBUG PropertyBinder: Cascading city with null 06:06:35,016 DEBUG PropertyBinder: Building property address 06:06:35,016 DEBUG PropertyBinder: Cascading address with null 06:06:35,016 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.items 06:06:35,017 DEBUG Ejb3Column: Binding column null unique false 06:06:35,017 DEBUG Ejb3Column: Binding column null unique false 06:06:35,019 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.User.items through a foreign key 06:06:35,021 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.User.items 06:06:35,021 DEBUG PropertyBinder: Building property items 06:06:35,021 DEBUG PropertyBinder: Cascading items with none 06:06:35,021 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.billingDetails 06:06:35,022 DEBUG Ejb3Column: Binding column null unique false 06:06:35,022 DEBUG Ejb3Column: Binding column null unique false 06:06:35,022 DEBUG CollectionBinder: Binding a OneToMany: org.hibernate.ce.auction.model.User.billingDetails through a foreign key 06:06:35,022 DEBUG CollectionBinder: Collection role: org.hibernate.ce.auction.model.User.billingDetails 06:06:35,022 DEBUG PropertyBinder: Building property billingDetails 06:06:35,022 DEBUG PropertyBinder: Cascading billingDetails with all 06:06:35,022 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.User.defaultBillingDetails 06:06:35,022 DEBUG Ejb3Column: Binding column DEFAULT_BILLINGDETAILS_ID unique false 06:06:35,022 DEBUG PropertyBinder: Building property defaultBillingDetails 06:06:35,022 DEBUG PropertyBinder: Cascading defaultBillingDetails with none 06:06:35,024 DEBUG AnnotationConfiguration: processing manytoone fk mappings 06:06:35,143 INFO Configuration: processing extends queue 06:06:35,143 INFO Configuration: processing collection mappings 06:06:35,187 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.Category.categorizedItems 06:06:35,187 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.Category.categorizedItems -> CATEGORIZED_ITEM 06:06:35,188 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.CategorizedItem.category 06:06:35,189 DEBUG HbmBinder: Mapped collection key: CAT_ID, one-to-many: org.hibernate.ce.auction.model.CategorizedItem 06:06:35,189 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.Item.categorizedItems 06:06:35,189 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.Item.categorizedItems -> CATEGORIZED_ITEM 06:06:35,189 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.CategorizedItem.item 06:06:35,189 DEBUG HbmBinder: Mapped collection key: ITEM_ID, one-to-many: org.hibernate.ce.auction.model.CategorizedItem 06:06:35,189 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.Item.bids 06:06:35,189 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.Item.bids -> BID 06:06:35,189 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.Bid.item 06:06:35,190 DEBUG HbmBinder: Mapped collection key: ITEM_ID, one-to-many: org.hibernate.ce.auction.model.Bid 06:06:35,190 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.User.items 06:06:35,190 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.User.items -> ITEM 06:06:35,190 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.Item.seller 06:06:35,190 DEBUG HbmBinder: Mapped collection key: SELLER_ID, one-to-many: org.hibernate.ce.auction.model.Item 06:06:35,190 DEBUG HbmBinder: Second pass for collection: org.hibernate.ce.auction.model.User.billingDetails 06:06:35,190 INFO CollectionBinder: Mapping collection: org.hibernate.ce.auction.model.User.billingDetails -> BILLING_DETAILS 06:06:35,190 DEBUG TableBinder: Retrieving property org.hibernate.ce.auction.model.BillingDetails.user 06:06:35,190 DEBUG HbmBinder: Mapped collection key: USER_ID, one-to-many: org.hibernate.ce.auction.model.BillingDetails 06:06:35,190 INFO Configuration: processing association property references 06:06:35,190 INFO Configuration: processing foreign key constraints 06:06:35,190 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Category 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Bid 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,191 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,240 DEBUG Configuration: Preparing to build session factory with filters : {} 06:06:35,240 DEBUG AnnotationConfiguration: Executing first pass of annotated classes 06:06:35,240 DEBUG AnnotationConfiguration: processing manytoone fk mappings 06:06:35,240 INFO Configuration: processing extends queue 06:06:35,240 INFO Configuration: processing collection mappings 06:06:35,241 INFO Configuration: processing association property references 06:06:35,241 INFO Configuration: processing foreign key constraints 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Category 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Item 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.Bid 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.User 06:06:35,241 DEBUG Configuration: resolving reference to class: org.hibernate.ce.auction.model.BillingDetails 06:06:35,327 WARN UserSuppliedConnectionProvider: No connection properties specified - the user must supply JDBC connections 06:06:35,338 ERROR Ejb3Util: Building EntityManagerFactory failed. javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:199) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) at org.hibernate.ce.auction.persistence.Ejb3Util.<clinit>(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.initData(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.testEjbQl(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.ce.auction.test.Ejb3Test.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)

    Hibernate JIRA | 1 decade ago | Christian Bauer
    javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
  3. 0

    The persistence provider should not autodetect hbm.xml files, or at least, not create duplicate imports. During migration from hbm.xml to annotations, users definitely have both in the classpath, but don't want to resolve conflicts all the time because the Hibernate developers thought autodetection is a good idea. It is not. persistence.xml: <entity-manager> <name>caveatemptor</name> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml"/> </properties> </entity-manager> (The hibernate.cfg.xml only has connection settings, no mappings.) ------------- Standard Output --------------- Running test... 06:13:12,785 DEBUG HibernatePersistence: Analyse of persistence.xml: file:/Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes/META-INF/persistence.xml 06:13:12,906 DEBUG JarVisitor: Searching mapped entities in jar/par: /Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes 06:13:13,090 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CreditCard 06:13:13,132 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Category 06:13:13,151 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Item 06:13:13,162 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Bid 06:13:13,182 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem$Id 06:13:13,187 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.persistence.audit.AuditLogRecord 06:13:13,191 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Address 06:13:13,204 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BankAccount 06:13:13,209 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BillingDetails 06:13:13,228 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.NodeInfo 06:13:13,233 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem 06:13:13,236 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Comment 06:13:13,244 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.User 06:13:13,250 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/persistence/NamedQueries.hbm.xml 06:13:13,251 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Comment.hbm.xml 06:13:13,251 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Item.hbm.xml 06:13:13,252 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/persistence/UserTypes.hbm.xml 06:13:13,253 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Category.hbm.xml 06:13:13,254 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/BillingDetails.hbm.xml 06:13:13,254 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/User.hbm.xml 06:13:13,255 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/CategorizedItem.hbm.xml 06:13:13,256 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/persistence/audit/AuditLogRecord.hbm.xml 06:13:13,256 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Bid.hbm.xml 06:13:13,257 DEBUG HibernatePersistence: Creating Factory: caveatemptor 06:13:13,309 INFO Environment: Hibernate 3.1 beta 2 06:13:13,309 INFO Environment: hibernate.properties not found 06:13:13,312 INFO Environment: using CGLIB reflection optimizer 06:13:13,315 INFO Environment: using JDK 1.4 java.sql.Timestamp handling 06:13:13,431 INFO AnnotationConfiguration: Mapping package org.hibernate.ce.auction.persistence 06:13:13,614 DEBUG Mappings: Added monetary_amount_usd with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:13,614 DEBUG Mappings: Added monetary_amount_eur with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:13,614 DEBUG Mappings: Added item_state with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:13,615 DEBUG Mappings: Added creditcard_type with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:13,615 DEBUG Mappings: Added rating with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:13,704 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:13,709 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:13,895 DEBUG HbmBinder: Named query: minBid -> select b from Bid b where b.amount.value = (select min(b.amount.value) from Bid b where b.item.id = :itemid) 06:13:13,903 DEBUG HbmBinder: Named query: maxBid -> select b from Bid b where b.amount.value = (select max(b.amount.value) from Bid b where b.item.id = :itemid) 06:13:13,908 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:13,909 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:13,996 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Comment -> COMMENTS 06:13:14,005 DEBUG HbmBinder: Mapped property: id -> COMMENT_ID 06:13:14,006 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,029 DEBUG HbmBinder: Mapped property: rating -> RATING 06:13:14,029 DEBUG HbmBinder: Mapped property: text -> COMMENT_TEXT 06:13:14,155 DEBUG HbmBinder: Mapped property: item -> ABOUT_ITEM_ID 06:13:14,156 DEBUG HbmBinder: Mapped property: fromUser -> FROM_USER_ID 06:13:14,161 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,162 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,240 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Item -> ITEM 06:13:14,241 DEBUG HbmBinder: Mapped property: id -> ITEM_ID 06:13:14,241 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,241 DEBUG HbmBinder: Mapped property: name -> NAME 06:13:14,241 DEBUG HbmBinder: Mapped property: description -> DESCRIPTION 06:13:14,241 DEBUG HbmBinder: Mapped property: initialPrice -> INITIAL_PRICE, INITIAL_PRICE_CURRENCY 06:13:14,242 DEBUG HbmBinder: Mapped property: reservePrice -> RESERVE_PRICE, RESERVE_PRICE_CURRENCY 06:13:14,242 DEBUG HbmBinder: Mapped property: startDate -> START_DATE 06:13:14,242 DEBUG HbmBinder: Mapped property: endDate -> END_DATE 06:13:14,242 DEBUG HbmBinder: Mapped property: state -> STATE 06:13:14,242 DEBUG HbmBinder: Mapped property: approvalDatetime -> APPROVAL_DATETIME 06:13:14,242 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,243 DEBUG HbmBinder: Mapped property: approvedBy -> APPROVED_BY_USER_ID 06:13:14,243 DEBUG HbmBinder: Mapped property: seller -> SELLER_ID 06:13:14,243 DEBUG HbmBinder: Mapped property: successfulBid -> SUCCESSFUL_BID_ID 06:13:14,248 DEBUG HbmBinder: Mapped property: categorizedItems 06:13:14,249 DEBUG HbmBinder: Mapped property: bids 06:13:14,249 INFO HbmBinder: Mapping collection: org.hibernate.ce.auction.model.Item.images -> ITEM_IMAGES 06:13:14,250 DEBUG HbmBinder: Mapped property: images 06:13:14,252 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,257 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,274 DEBUG Mappings: Added monetary_amount_usd with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:14,274 DEBUG Mappings: Added monetary_amount_eur with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:14,274 DEBUG Mappings: Added item_state with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:14,274 DEBUG Mappings: Added creditcard_type with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:14,274 DEBUG Mappings: Added rating with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:14,276 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,277 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,424 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Category -> CATEGORY 06:13:14,424 DEBUG HbmBinder: Mapped property: id -> CATEGORY_ID 06:13:14,426 DEBUG HbmBinder: Mapped property: name -> NAME 06:13:14,428 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,428 DEBUG HbmBinder: Mapped property: parent -> PARENT_CATEGORY_ID 06:13:14,428 DEBUG HbmBinder: Mapped property: children 06:13:14,433 DEBUG HbmBinder: Mapped property: thread -> NS_THREAD 06:13:14,434 DEBUG HbmBinder: Mapped property: left -> NS_LEFT 06:13:14,434 DEBUG HbmBinder: Mapped property: right -> NS_RIGHT 06:13:14,434 DEBUG HbmBinder: Mapped property: nodeInfo -> NS_THREAD, NS_LEFT, NS_RIGHT 06:13:14,437 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,438 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,470 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.BillingDetails -> BILLING_DETAILS 06:13:14,470 DEBUG HbmBinder: Mapped property: id -> BILLING_DETAILS_ID 06:13:14,471 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,471 DEBUG HbmBinder: Mapped property: ownerName -> OWNER_NAME 06:13:14,471 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,472 DEBUG HbmBinder: Mapped property: user -> USER_ID 06:13:14,524 INFO HbmBinder: Mapping joined-subclass: org.hibernate.ce.auction.model.CreditCard -> CREDIT_CARD 06:13:14,525 DEBUG HbmBinder: Mapped property: type -> CC_TYPE 06:13:14,525 DEBUG HbmBinder: Mapped property: number -> CC_NUMBER 06:13:14,525 DEBUG HbmBinder: Mapped property: expMonth -> EXP_MONTH 06:13:14,525 DEBUG HbmBinder: Mapped property: expYear -> EXP_YEAR 06:13:14,526 INFO HbmBinder: Mapping joined-subclass: org.hibernate.ce.auction.model.BankAccount -> BANK_ACCOUNT 06:13:14,529 DEBUG HbmBinder: Mapped property: number -> ACCOUNT_NUMBER 06:13:14,529 DEBUG HbmBinder: Mapped property: bankName -> BANK_NAME 06:13:14,530 DEBUG HbmBinder: Mapped property: bankSwift -> BANK_SWIFT 06:13:14,538 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,539 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,580 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.User -> USERS 06:13:14,580 DEBUG HbmBinder: Mapped property: id -> USER_ID 06:13:14,580 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,581 DEBUG HbmBinder: Mapped property: firstname -> FIRSTNAME 06:13:14,582 DEBUG HbmBinder: Mapped property: lastname -> LASTNAME 06:13:14,582 DEBUG HbmBinder: Mapped property: username -> USERNAME 06:13:14,583 DEBUG HbmBinder: Mapped property: password -> PASSWORD 06:13:14,583 DEBUG HbmBinder: Mapped property: email -> EMAIL 06:13:14,583 DEBUG HbmBinder: Mapped property: ranking -> RANKING 06:13:14,583 DEBUG HbmBinder: Mapped property: admin -> IS_ADMIN 06:13:14,583 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,584 DEBUG HbmBinder: Mapped property: defaultBillingDetails -> DEFAULT_BILLING_DETAILS_ID 06:13:14,584 DEBUG HbmBinder: Mapped property: street -> STREET 06:13:14,584 DEBUG HbmBinder: Mapped property: zipcode -> ZIPCODE 06:13:14,584 DEBUG HbmBinder: Mapped property: city -> CITY 06:13:14,584 DEBUG HbmBinder: Mapped property: address -> STREET, ZIPCODE, CITY 06:13:14,584 DEBUG HbmBinder: Mapped property: items 06:13:14,585 DEBUG HbmBinder: Mapped property: billingDetails 06:13:14,587 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,587 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,605 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.CategorizedItem -> CATEGORIZED_ITEM 06:13:14,611 DEBUG HbmBinder: Mapped property: categoryId -> CATEGORY_ID 06:13:14,611 DEBUG HbmBinder: Mapped property: itemId -> ITEM_ID 06:13:14,611 DEBUG HbmBinder: Mapped property: id -> CATEGORY_ID, ITEM_ID 06:13:14,611 DEBUG HbmBinder: Mapped property: dateAdded -> DATE_ADDED 06:13:14,612 DEBUG HbmBinder: Mapped property: username -> USERNAME 06:13:14,613 DEBUG HbmBinder: Mapped property: category -> CATEGORY_ID 06:13:14,613 DEBUG HbmBinder: Mapped property: item -> ITEM_ID 06:13:14,615 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,616 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,633 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.persistence.audit.AuditLogRecord -> AUDIT_LOG 06:13:14,634 DEBUG HbmBinder: Mapped property: message -> MESSAGE 06:13:14,634 DEBUG HbmBinder: Mapped property: entityId -> ENTITY_ID 06:13:14,634 DEBUG HbmBinder: Mapped property: entityClass -> ENTITY_CLASS 06:13:14,634 DEBUG HbmBinder: Mapped property: userId -> USER_ID 06:13:14,634 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,638 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,638 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,661 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Bid -> BID 06:13:14,662 DEBUG HbmBinder: Mapped property: id -> BID_ID 06:13:14,662 DEBUG HbmBinder: Mapped property: amount -> AMOUNT, AMOUNT_CURRENCY 06:13:14,774 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,775 DEBUG HbmBinder: Mapped property: item -> ITEM_ID 06:13:14,775 DEBUG HbmBinder: Mapped property: bidder -> BIDDER_ID 06:13:14,779 DEBUG AnnotationConfiguration: Executing first pass of annotated classes 06:13:14,885 DEBUG EntityBinder: Import with entity name=BillingDetails 06:13:14,885 INFO Mappings: duplicate import: org.hibernate.ce.auction.model.BillingDetails->BillingDetails 06:13:14,900 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.BillingDetails per field access 06:13:14,941 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.id 06:13:14,945 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:13:14,946 DEBUG AnnotationBinder: id is an id 06:13:14,953 DEBUG SimpleValueBinder: building SimpleValue for id 06:13:14,955 DEBUG PropertyBinder: Building property id 06:13:14,955 DEBUG PropertyBinder: Cascading id with null 06:13:14,955 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:13:14,955 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.version 06:13:14,958 DEBUG Ejb3Column: Binding column version unique false 06:13:14,958 DEBUG AnnotationBinder: version is a version property 06:13:14,958 DEBUG PropertyBinder: binding property version with lazy=false 06:13:14,958 DEBUG SimpleValueBinder: building SimpleValue for version 06:13:14,959 DEBUG PropertyBinder: Building property version 06:13:14,959 DEBUG PropertyBinder: Cascading version with null 06:13:14,959 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:13:14,959 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.ownerName 06:13:14,959 DEBUG Ejb3Column: Binding column OWNER_NAME unique false 06:13:14,962 DEBUG PropertyBinder: binding property ownerName with lazy=false 06:13:14,962 DEBUG SimpleValueBinder: building SimpleValue for ownerName 06:13:14,962 DEBUG PropertyBinder: Building property ownerName 06:13:14,962 DEBUG PropertyBinder: Cascading ownerName with null 06:13:14,962 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.user 06:13:14,964 DEBUG Ejb3Column: Binding column USER_ID unique false 06:13:14,968 DEBUG PropertyBinder: Building property user 06:13:14,968 DEBUG PropertyBinder: Cascading user with none 06:13:14,968 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.created 06:13:14,968 DEBUG Ejb3Column: Binding column created unique false 06:13:14,968 DEBUG PropertyBinder: binding property created with lazy=false 06:13:14,968 DEBUG SimpleValueBinder: building SimpleValue for created 06:13:14,968 DEBUG PropertyBinder: Building property created 06:13:14,969 DEBUG PropertyBinder: Cascading created with null 06:13:14,972 ERROR Ejb3Util: Building EntityManagerFactory failed. javax.persistence.PersistenceException: org.hibernate.MappingException: duplicate class mapping: org.hibernate.ce.auction.model.BillingDetails at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:199) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) at org.hibernate.ce.auction.persistence.Ejb3Util.<clinit>(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.initData(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.testEjbQl(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.ce.auction.test.Ejb3Test.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)

    Hibernate JIRA | 1 decade ago | Christian Bauer
    javax.persistence.PersistenceException: org.hibernate.MappingException: duplicate class mapping: org.hibernate.ce.auction.model.BillingDetails
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The persistence provider should not autodetect hbm.xml files, or at least, not create duplicate imports. During migration from hbm.xml to annotations, users definitely have both in the classpath, but don't want to resolve conflicts all the time because the Hibernate developers thought autodetection is a good idea. It is not. persistence.xml: <entity-manager> <name>caveatemptor</name> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml"/> </properties> </entity-manager> (The hibernate.cfg.xml only has connection settings, no mappings.) ------------- Standard Output --------------- Running test... 06:13:12,785 DEBUG HibernatePersistence: Analyse of persistence.xml: file:/Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes/META-INF/persistence.xml 06:13:12,906 DEBUG JarVisitor: Searching mapped entities in jar/par: /Users/turin/work/remote/hibernate/CaveatEmptor/HiA-SE/build/junit/classes 06:13:13,090 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CreditCard 06:13:13,132 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Category 06:13:13,151 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Item 06:13:13,162 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Bid 06:13:13,182 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem$Id 06:13:13,187 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.persistence.audit.AuditLogRecord 06:13:13,191 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Address 06:13:13,204 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BankAccount 06:13:13,209 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.BillingDetails 06:13:13,228 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.NodeInfo 06:13:13,233 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.CategorizedItem 06:13:13,236 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.Comment 06:13:13,244 DEBUG HibernatePersistence: Add Javassist mapped class to caveatemptor: org.hibernate.ce.auction.model.User 06:13:13,250 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/persistence/NamedQueries.hbm.xml 06:13:13,251 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Comment.hbm.xml 06:13:13,251 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Item.hbm.xml 06:13:13,252 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/persistence/UserTypes.hbm.xml 06:13:13,253 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Category.hbm.xml 06:13:13,254 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/BillingDetails.hbm.xml 06:13:13,254 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/User.hbm.xml 06:13:13,255 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/CategorizedItem.hbm.xml 06:13:13,256 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/persistence/audit/AuditLogRecord.hbm.xml 06:13:13,256 DEBUG HibernatePersistence: Trying to get resuource: /org/hibernate/ce/auction/model/Bid.hbm.xml 06:13:13,257 DEBUG HibernatePersistence: Creating Factory: caveatemptor 06:13:13,309 INFO Environment: Hibernate 3.1 beta 2 06:13:13,309 INFO Environment: hibernate.properties not found 06:13:13,312 INFO Environment: using CGLIB reflection optimizer 06:13:13,315 INFO Environment: using JDK 1.4 java.sql.Timestamp handling 06:13:13,431 INFO AnnotationConfiguration: Mapping package org.hibernate.ce.auction.persistence 06:13:13,614 DEBUG Mappings: Added monetary_amount_usd with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:13,614 DEBUG Mappings: Added monetary_amount_eur with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:13,614 DEBUG Mappings: Added item_state with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:13,615 DEBUG Mappings: Added creditcard_type with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:13,615 DEBUG Mappings: Added rating with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:13,704 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:13,709 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:13,895 DEBUG HbmBinder: Named query: minBid -> select b from Bid b where b.amount.value = (select min(b.amount.value) from Bid b where b.item.id = :itemid) 06:13:13,903 DEBUG HbmBinder: Named query: maxBid -> select b from Bid b where b.amount.value = (select max(b.amount.value) from Bid b where b.item.id = :itemid) 06:13:13,908 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:13,909 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:13,996 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Comment -> COMMENTS 06:13:14,005 DEBUG HbmBinder: Mapped property: id -> COMMENT_ID 06:13:14,006 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,029 DEBUG HbmBinder: Mapped property: rating -> RATING 06:13:14,029 DEBUG HbmBinder: Mapped property: text -> COMMENT_TEXT 06:13:14,155 DEBUG HbmBinder: Mapped property: item -> ABOUT_ITEM_ID 06:13:14,156 DEBUG HbmBinder: Mapped property: fromUser -> FROM_USER_ID 06:13:14,161 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,162 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,240 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Item -> ITEM 06:13:14,241 DEBUG HbmBinder: Mapped property: id -> ITEM_ID 06:13:14,241 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,241 DEBUG HbmBinder: Mapped property: name -> NAME 06:13:14,241 DEBUG HbmBinder: Mapped property: description -> DESCRIPTION 06:13:14,241 DEBUG HbmBinder: Mapped property: initialPrice -> INITIAL_PRICE, INITIAL_PRICE_CURRENCY 06:13:14,242 DEBUG HbmBinder: Mapped property: reservePrice -> RESERVE_PRICE, RESERVE_PRICE_CURRENCY 06:13:14,242 DEBUG HbmBinder: Mapped property: startDate -> START_DATE 06:13:14,242 DEBUG HbmBinder: Mapped property: endDate -> END_DATE 06:13:14,242 DEBUG HbmBinder: Mapped property: state -> STATE 06:13:14,242 DEBUG HbmBinder: Mapped property: approvalDatetime -> APPROVAL_DATETIME 06:13:14,242 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,243 DEBUG HbmBinder: Mapped property: approvedBy -> APPROVED_BY_USER_ID 06:13:14,243 DEBUG HbmBinder: Mapped property: seller -> SELLER_ID 06:13:14,243 DEBUG HbmBinder: Mapped property: successfulBid -> SUCCESSFUL_BID_ID 06:13:14,248 DEBUG HbmBinder: Mapped property: categorizedItems 06:13:14,249 DEBUG HbmBinder: Mapped property: bids 06:13:14,249 INFO HbmBinder: Mapping collection: org.hibernate.ce.auction.model.Item.images -> ITEM_IMAGES 06:13:14,250 DEBUG HbmBinder: Mapped property: images 06:13:14,252 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,257 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,274 DEBUG Mappings: Added monetary_amount_usd with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:14,274 DEBUG Mappings: Added monetary_amount_eur with class org.hibernate.ce.auction.persistence.MonetaryAmountType 06:13:14,274 DEBUG Mappings: Added item_state with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:14,274 DEBUG Mappings: Added creditcard_type with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:14,274 DEBUG Mappings: Added rating with class org.hibernate.ce.auction.persistence.EnumUserType 06:13:14,276 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,277 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,424 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Category -> CATEGORY 06:13:14,424 DEBUG HbmBinder: Mapped property: id -> CATEGORY_ID 06:13:14,426 DEBUG HbmBinder: Mapped property: name -> NAME 06:13:14,428 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,428 DEBUG HbmBinder: Mapped property: parent -> PARENT_CATEGORY_ID 06:13:14,428 DEBUG HbmBinder: Mapped property: children 06:13:14,433 DEBUG HbmBinder: Mapped property: thread -> NS_THREAD 06:13:14,434 DEBUG HbmBinder: Mapped property: left -> NS_LEFT 06:13:14,434 DEBUG HbmBinder: Mapped property: right -> NS_RIGHT 06:13:14,434 DEBUG HbmBinder: Mapped property: nodeInfo -> NS_THREAD, NS_LEFT, NS_RIGHT 06:13:14,437 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,438 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,470 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.BillingDetails -> BILLING_DETAILS 06:13:14,470 DEBUG HbmBinder: Mapped property: id -> BILLING_DETAILS_ID 06:13:14,471 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,471 DEBUG HbmBinder: Mapped property: ownerName -> OWNER_NAME 06:13:14,471 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,472 DEBUG HbmBinder: Mapped property: user -> USER_ID 06:13:14,524 INFO HbmBinder: Mapping joined-subclass: org.hibernate.ce.auction.model.CreditCard -> CREDIT_CARD 06:13:14,525 DEBUG HbmBinder: Mapped property: type -> CC_TYPE 06:13:14,525 DEBUG HbmBinder: Mapped property: number -> CC_NUMBER 06:13:14,525 DEBUG HbmBinder: Mapped property: expMonth -> EXP_MONTH 06:13:14,525 DEBUG HbmBinder: Mapped property: expYear -> EXP_YEAR 06:13:14,526 INFO HbmBinder: Mapping joined-subclass: org.hibernate.ce.auction.model.BankAccount -> BANK_ACCOUNT 06:13:14,529 DEBUG HbmBinder: Mapped property: number -> ACCOUNT_NUMBER 06:13:14,529 DEBUG HbmBinder: Mapped property: bankName -> BANK_NAME 06:13:14,530 DEBUG HbmBinder: Mapped property: bankSwift -> BANK_SWIFT 06:13:14,538 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,539 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,580 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.User -> USERS 06:13:14,580 DEBUG HbmBinder: Mapped property: id -> USER_ID 06:13:14,580 DEBUG HbmBinder: Mapped property: version -> VERSION 06:13:14,581 DEBUG HbmBinder: Mapped property: firstname -> FIRSTNAME 06:13:14,582 DEBUG HbmBinder: Mapped property: lastname -> LASTNAME 06:13:14,582 DEBUG HbmBinder: Mapped property: username -> USERNAME 06:13:14,583 DEBUG HbmBinder: Mapped property: password -> PASSWORD 06:13:14,583 DEBUG HbmBinder: Mapped property: email -> EMAIL 06:13:14,583 DEBUG HbmBinder: Mapped property: ranking -> RANKING 06:13:14,583 DEBUG HbmBinder: Mapped property: admin -> IS_ADMIN 06:13:14,583 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,584 DEBUG HbmBinder: Mapped property: defaultBillingDetails -> DEFAULT_BILLING_DETAILS_ID 06:13:14,584 DEBUG HbmBinder: Mapped property: street -> STREET 06:13:14,584 DEBUG HbmBinder: Mapped property: zipcode -> ZIPCODE 06:13:14,584 DEBUG HbmBinder: Mapped property: city -> CITY 06:13:14,584 DEBUG HbmBinder: Mapped property: address -> STREET, ZIPCODE, CITY 06:13:14,584 DEBUG HbmBinder: Mapped property: items 06:13:14,585 DEBUG HbmBinder: Mapped property: billingDetails 06:13:14,587 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,587 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,605 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.CategorizedItem -> CATEGORIZED_ITEM 06:13:14,611 DEBUG HbmBinder: Mapped property: categoryId -> CATEGORY_ID 06:13:14,611 DEBUG HbmBinder: Mapped property: itemId -> ITEM_ID 06:13:14,611 DEBUG HbmBinder: Mapped property: id -> CATEGORY_ID, ITEM_ID 06:13:14,611 DEBUG HbmBinder: Mapped property: dateAdded -> DATE_ADDED 06:13:14,612 DEBUG HbmBinder: Mapped property: username -> USERNAME 06:13:14,613 DEBUG HbmBinder: Mapped property: category -> CATEGORY_ID 06:13:14,613 DEBUG HbmBinder: Mapped property: item -> ITEM_ID 06:13:14,615 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,616 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,633 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.persistence.audit.AuditLogRecord -> AUDIT_LOG 06:13:14,634 DEBUG HbmBinder: Mapped property: message -> MESSAGE 06:13:14,634 DEBUG HbmBinder: Mapped property: entityId -> ENTITY_ID 06:13:14,634 DEBUG HbmBinder: Mapped property: entityClass -> ENTITY_CLASS 06:13:14,634 DEBUG HbmBinder: Mapped property: userId -> USER_ID 06:13:14,634 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,638 DEBUG DTDEntityResolver: trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/ 06:13:14,638 DEBUG DTDEntityResolver: found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath 06:13:14,661 INFO HbmBinder: Mapping class: org.hibernate.ce.auction.model.Bid -> BID 06:13:14,662 DEBUG HbmBinder: Mapped property: id -> BID_ID 06:13:14,662 DEBUG HbmBinder: Mapped property: amount -> AMOUNT, AMOUNT_CURRENCY 06:13:14,774 DEBUG HbmBinder: Mapped property: created -> CREATED 06:13:14,775 DEBUG HbmBinder: Mapped property: item -> ITEM_ID 06:13:14,775 DEBUG HbmBinder: Mapped property: bidder -> BIDDER_ID 06:13:14,779 DEBUG AnnotationConfiguration: Executing first pass of annotated classes 06:13:14,885 DEBUG EntityBinder: Import with entity name=BillingDetails 06:13:14,885 INFO Mappings: duplicate import: org.hibernate.ce.auction.model.BillingDetails->BillingDetails 06:13:14,900 DEBUG AnnotationBinder: Processing org.hibernate.ce.auction.model.BillingDetails per field access 06:13:14,941 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.id 06:13:14,945 DEBUG Ejb3Column: Binding column BILLING_DETAILS_ID unique false 06:13:14,946 DEBUG AnnotationBinder: id is an id 06:13:14,953 DEBUG SimpleValueBinder: building SimpleValue for id 06:13:14,955 DEBUG PropertyBinder: Building property id 06:13:14,955 DEBUG PropertyBinder: Cascading id with null 06:13:14,955 DEBUG AnnotationBinder: Bind @EmbeddedId on id 06:13:14,955 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.version 06:13:14,958 DEBUG Ejb3Column: Binding column version unique false 06:13:14,958 DEBUG AnnotationBinder: version is a version property 06:13:14,958 DEBUG PropertyBinder: binding property version with lazy=false 06:13:14,958 DEBUG SimpleValueBinder: building SimpleValue for version 06:13:14,959 DEBUG PropertyBinder: Building property version 06:13:14,959 DEBUG PropertyBinder: Cascading version with null 06:13:14,959 DEBUG AnnotationBinder: Version name: version, unsavedValue: undefined 06:13:14,959 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.ownerName 06:13:14,959 DEBUG Ejb3Column: Binding column OWNER_NAME unique false 06:13:14,962 DEBUG PropertyBinder: binding property ownerName with lazy=false 06:13:14,962 DEBUG SimpleValueBinder: building SimpleValue for ownerName 06:13:14,962 DEBUG PropertyBinder: Building property ownerName 06:13:14,962 DEBUG PropertyBinder: Cascading ownerName with null 06:13:14,962 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.user 06:13:14,964 DEBUG Ejb3Column: Binding column USER_ID unique false 06:13:14,968 DEBUG PropertyBinder: Building property user 06:13:14,968 DEBUG PropertyBinder: Cascading user with none 06:13:14,968 DEBUG AnnotationBinder: Processing annotations of org.hibernate.ce.auction.model.BillingDetails.created 06:13:14,968 DEBUG Ejb3Column: Binding column created unique false 06:13:14,968 DEBUG PropertyBinder: binding property created with lazy=false 06:13:14,968 DEBUG SimpleValueBinder: building SimpleValue for created 06:13:14,968 DEBUG PropertyBinder: Building property created 06:13:14,969 DEBUG PropertyBinder: Cascading created with null 06:13:14,972 ERROR Ejb3Util: Building EntityManagerFactory failed. javax.persistence.PersistenceException: org.hibernate.MappingException: duplicate class mapping: org.hibernate.ce.auction.model.BillingDetails at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:199) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) at org.hibernate.ce.auction.persistence.Ejb3Util.<clinit>(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.initData(Unknown Source) at org.hibernate.ce.auction.test.Ejb3Test.testEjbQl(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at org.hibernate.ce.auction.test.Ejb3Test.runTest(Unknown Source) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)

    Hibernate JIRA | 1 decade ago | Christian Bauer
    javax.persistence.PersistenceException: org.hibernate.MappingException: duplicate class mapping: org.hibernate.ce.auction.model.BillingDetails
  6. 0

    Executing mysql query as native query in Hibernate

    Stack Overflow | 6 years ago | mvg
    javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory()
    2. Hibernate EJB
      HibernatePersistence.createEntityManagerFactory
      1. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:199)
      1 frame
    3. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
      2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
      2 frames
    4. org.hibernate.ce
      Ejb3Test.testEjbQl
      1. org.hibernate.ce.auction.persistence.Ejb3Util.<clinit>(Unknown Source)
      2. org.hibernate.ce.auction.test.Ejb3Test.initData(Unknown Source)
      3. org.hibernate.ce.auction.test.Ejb3Test.testEjbQl(Unknown Source)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. JUnit
      TestCase.runTest
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      1 frame
    7. org.hibernate.ce
      Ejb3Test.runTest
      1. org.hibernate.ce.auction.test.Ejb3Test.runTest(Unknown Source)
      1 frame
    8. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runBare(TestCase.java:127)
      2. junit.framework.TestResult$1.protect(TestResult.java:106)
      3. junit.framework.TestResult.runProtected(TestResult.java:124)
      4. junit.framework.TestResult.run(TestResult.java:109)
      5. junit.framework.TestCase.run(TestCase.java:118)
      6. junit.framework.TestSuite.runTest(TestSuite.java:208)
      7. junit.framework.TestSuite.run(TestSuite.java:203)
      7 frames
    9. Apache Ant + JUnit
      JUnitTestRunner.main
      1. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
      2. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656)
      3. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)
      3 frames