nordborg wrote:
Can you post the new mapping document? I assume you are now using <composite-id> instead of <id> and that the mapping in the original post is no longer relevant?
Before i post the xml .please take a look at this output ---->
INFO: Hibernate 3.2.5
INFO: hibernate.properties not found
INFO: Bytecode provider name : cglib
INFO: using JDK 1.4 java.sql.Timestamp handling
INFO: configuring from resource: /hibernate.cfg.xml
INFO: Configuration resource: /hibernate.cfg.xml
INFO: Reading mappings from resource : hibernate.hbm.xml
INFO: Mapping class: Employee -> employee
INFO: Reading mappings from resource : orders.hbm.xml
INFO: Mapping class: orders -> orders_tbl
INFO: Reading mappings from resource : clients.hbm.xml
INFO: Mapping class: clients -> clients_tbl
INFO: Reading mappings from resource : clientstk.hbm.xml
INFO: Mapping class: clientStock -> clientstock_tbl
INFO: Reading mappings from resource : regions.hbm.xml
INFO: Mapping class: regions -> regions_tbl
INFO: Reading mappings from resource : products.hbm.xml
INFO: Mapping class: products -> products_tbl
INFO: Reading mappings from resource : personaldetails.hbm.xml
INFO: Mapping class: personalDetails -> personaldetails_tbl
INFO: Reading mappings from resource : discounts.hbm.xml
INFO: Mapping class: discounts -> discounts_tbl
INFO: Reading mappings from resource : locations.hbm.xml
INFO: Mapping class: locations -> locations_tbl
INFO: Reading mappings from resource : payments.hbm.xml
INFO: Mapping class: payments -> payments_tbl
INFO: Reading mappings from resource : rcl.hbm.xml
INFO: Mapping class: regionsClientsLocationsMappings -> regionsclientslocationsmappings_tbl
INFO: Reading mappings from resource : orderdet.hbm.xml
INFO: Mapping class: orderDetails -> orderdetails_tbl
INFO: Configured SessionFactory: null
WARNING: composite-id class does not override equals(): payments
WARNING: composite-id class does not override hashCode(): payments
INFO: Using Hibernate built-in connection pool (not for production use!)
INFO: Hibernate connection pool size: 20
INFO: autocommit mode: true
INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/sms
INFO: connection properties: {user=root, password=****, autocommit=true}
INFO: RDBMS: MySQL, version: 5.1.30-community
INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
INFO: Using dialect: org.hibernate.dialect.DerbyDialect
INFO: Using default transaction strategy (direct JDBC transactions)
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO: Automatic flush during beforeCompletion(): disabled
INFO: Automatic session close at end of transaction: disabled
INFO: Scrollable result sets: enabled
INFO: JDBC3 getGeneratedKeys(): enabled
INFO: Connection release mode: auto
INFO: Default batch fetch size: 1
INFO: Generate SQL with comments: disabled
INFO: Order SQL updates by primary key: disabled
INFO: Order SQL inserts for batching: disabled
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO: Using ASTQueryTranslatorFactory
INFO: Query language substitutions: {}
INFO: JPA-QL strict compliance: disabled
INFO: Second-level cache: enabled
INFO: Query cache: disabled
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
INFO: Optimize cache for minimal puts: disabled
INFO: Structured second-level cache entries: disabled
INFO: Statistics: disabled
INFO: Deleted entity synthetic identifier rollback: disabled
INFO: Default entity-mode: pojo
INFO: Named query checking : enabled
INFO: building session factory
INFO: Exception--->org.hibernate.MappingException: could not instantiate id generator
INFO: cleaning up connection pool: jdbc:mysql://localhost:3306/sms