1. NHibernate: Using a custom type as a primary key stackoverflow.comI have a legacy schema that contains tables with primary keys of type binary(16) -- its a MD5 hash of the other columns. NHibernate does not work with byte[] as a ... |
2. how to solve custom primary key duplication in one to many forum.hibernate.orgAuthor Message kines-bo Post subject: how to solve custom primary key duplication in one to many Posted: Mon Jan 11, 2010 1:28 am Newbie Joined: Sun Jan 10, 2010 11:39 pm Posts: 2 how to solve custom primary key duplication in one to many In my code ,I set custom primary key in one to many. But when I ... |
3. CUSTOM NAMES FOR PRIMARY KEYS forum.hibernate.orgHello. I have a mapping like the following: |
4. custom pk generation, and then some.... forum.hibernate.orgHi, I have an interesting primary key requirement. One of our entities needs some special functionality which I'm a uncertain how to accomplish with hibernate. The primary key of the table is a standard sequence like any other entity. Where it is different is that I need to step in after pk generation, encode the sequence into a fixed length string, ... |
5. Problems with Using a custom Primary Key forum.hibernate.orgorg.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at dao.HibernateDAOBase.commit(HibernateDAOBase.java:116) at dao.HibernateDAOBase.persist(HibernateDAOBase.java:17) at dao.HibernateDAOBase.save(HibernateDAOBase.java:30) at hib.client.HibernateClient.save(HibernateClient.java:112) at hib.client.HibernateClient. |
6. How to write Custom class for Primary Key Generation. forum.hibernate.orgriccardob Post subject: Posted: Mon Sep 08, 2008 9:48 am Newbie Joined: Mon Aug 25, 2008 6:43 am Posts: 3 Location: Italy Hi, I've write a custom Pk generator, Simply following and customizing the source of Hibernate Code: org.hibernate.id.MultipleHiLoPerTableGenerator I've just done it because I need a composite primary key generator. below the code I've customized. Code: public class ... |