Generator 3 « Map « JPA Q&A





2. primary key generator on clustered environment    forum.hibernate.org

Hello everyone, We'll be using Hibernate 3 on JBoss clustered environment. I would like some help in deciding which generator-class should be used for such environment. We'll be using Oracle 9i for now and soon migrate to Oracle 10g. If we use "increment", i think it'll fail in the clustered environment. So could someone please give me some directions on what ...

3. generator with Oracle ROWID and triggers    forum.hibernate.org

??? ???????????????????? ???? ...

4. MappingException: could not instantiate id generator    forum.hibernate.org

Newbie Joined: Tue May 10, 2005 10:54 am Posts: 16 Location: Italy Hi I'm new in hibernate. I'm trying to generate my first, and very simple, example with hibernate. I've solve some problem, but now I can't understand why the system can't generate the id and I've the error net.sf.hibernate.MappingException: could not instantiate id generator at net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:82) I've hibernate 2.1 and ...

5. vm generator    forum.hibernate.org

6. unexpected row count with native generator    forum.hibernate.org

Hibernate version: 3.01 Hi I've been running into an "unexpected row count" error, when calling flush() after a batch-job (I think after a call to saveOrUpdate()). There are no cascades. Below is the error and a mapping example. How to solve this problem? I set unsaved-value="-1"... Thanks in advance! Mapping documents:

7. problem using with native id generator    forum.hibernate.org

Expert Joined: Wed Apr 06, 2005 5:03 pm Posts: 273 Location: Salt Lake City, Utah, USA Hibernate version:3.0.5 I'm using the element in my mapping file to get sql server to insert a GUID into a column in my table, e.g. Code: INSERT INTO mytable(...,myguid) VALUES(?,?,...,NEWID()) On this table the id has a native generator. As far as I can ...

8. Modifying mapping's id generator at runtime    forum.hibernate.org

9.     forum.hibernate.org

I have set up the generator class for two classes. One works great, the other generates wild, seemingly random, numbers. I am using an ORacle database. I put a println statement in my setUserId method, and it is in fact "1" the javaclass rst time through. However, the database always ends up conatining some wacky value. THe second tme through generally ...





10. save[OrUpdateCopy], id generators, cascading on save    forum.hibernate.org

Hibernate version: 2.1.7 Name and version of the database you are using:PostgreSQL 8.0.0beta5 Mapping documents: Code: ...

11. create new id generator    forum.hibernate.org

Hibernate version: 3 Hi ! I am trying to creat new id generator and I have some problems. I need generator that will look at id, and if id is set, and more than zero then it will use it, if id is not set or/and less or equal to 0 , then it will return next free id. So this ...

12. How to write my own generator class    forum.hibernate.org

Hi all, I want to write my own generator class which will produce unique string values every time a new record is inserted.Can anybody help me in this aspect.Currently I am doing this. But i want to change the column type from int to String. With regards, Ajse

13. Getting "could not instantiate generator id" error    forum.hibernate.org

I am simpling trying to get Hibernate to use the Oracle sequence IT_PROGRAM_SEQ to generate the key for the IT_PROGRAM table. ITProgram.hbm.xml file ... IT_PROGRAM_SEQ ... The strange thing is I am getting this error as soon as I try to access the JSF page linked to the ...

15. Id generator problem.    forum.hibernate.org

Hello, I just started using Hibernate for persistence in a Tapestry project. I am stuck with using Filemaker 7 database. I know that it's not oficially supported by Hibernate (and it is very far from my 5-th choice of a database) however it does have ok JDBC driver support. I am actually able to persist objects from my Tapestry application but ...

16. Newbie ID Generator problem    forum.hibernate.org

Beginner Joined: Thu Jul 21, 2005 10:28 am Posts: 21 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2.0.x Mapping documents: CCC.SEQ.AGNT_MSG ...





17. Inheritance + generator    forum.hibernate.org

Hello, I'm trying to map the following XML. It seems that i can't use in the super class. How can i solve this mess ??? Thanks!!! (using microsoft sql server db) ---------------------------------------------------------------- The exception: Caused by: org.hibernate.MappingException: Cannot use identity column key generation with mapping for: clientes.Empresa ---------------------------------------------------------------- The mapping:

18. Key generator advice needed    forum.hibernate.org

Hibernate version: 2.x Name and version of the database you are using: SQL Server HSQLDB Oracle My application is built to support multiple databases. To date I've used a TableHiLoGenerator to generate my keys. As I also need to be able to support bulk inserts this is becoming increasingly undesireable. I'd switch to sequences but then sql server doesn't support them. ...

19. Hibernate mapping file and code generator    forum.hibernate.org

Dear all, I am a beginner to hibernate. I wanted the attributes of a table to be changed (table-name, column name). But when I run the application, hibernate still tries to use the old values (table name and column name) for any sql statements generated like (insert etc.). What should I do, so that hibernate generates the sql statements with new ...

20. Increment Primary key generator.    forum.hibernate.org

21. overriding id generator type for union-subclass    forum.hibernate.org

Hello, I'm wondering if anyone has tried to override the id generator type for union-subclasses? I've got a base object that I use for all domain objects...it has an ID attribute that's a string. In my hibernate mapping, I have it defined as uuid.hex. Everything works nicely. But now, we're realizing that not all domain object need to have a uuid...its ...

22. Hibernate's ID Generator    forum.hibernate.org

23. generator class="select" usage problem    forum.hibernate.org

Author Message TimTroy Post subject: generator class="select" usage problem Posted: Wed Aug 17, 2005 4:20 pm Newbie Joined: Thu Dec 30, 2004 9:12 am Posts: 4 I am trying to use a select generator. My problem is another application is inserting data into Oracle and relying on a trigger/sequence to set the id. If I use a generator sequence, ...

24. Two Generators?    forum.hibernate.org

I've got a table which has an ID column which is generated with "increment". (native doesn't work) This table also has a boardroomID column. This ID represents a boardroom. The thing is, there can be duplicate boardroomID's. If a modification is made to a boardroom, a new row is added (new ID), but with the same boardroomID so we know it's ...

25. Hilo table generator    forum.hibernate.org

I believe I know what is happening now. The hbm2dll code used to genereate the schema isn't clever enough to work out that it should either wait for all identity properties to be parsed before creating hte table, or it can add columns to the sequence table for fear of breaking hte schema. Looks like different tables will have to be ...

26. Writing my own generator    forum.hibernate.org

Hi all, In my application the primary key(varchar2) of a table is like"student123",where student is same but 123 is following a sequence for each new row.For example the primary key of the next row will be "student125" and so on. How should I write my generator class to yeild such value.Please give some suggestions. With regards, Ajse

27. could not instantiate id generator    forum.hibernate.org

I'm trying to get my first Hibernate application going. Using this mapping PARTY_ID_SEQUENCE I get the following on Hibernate start up: nested exception is net.sf.hibernate.MappingException: could not instantiate id generator net.sf.hibernate.MappingException: could not instantiate id generator at net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:82) at At first glance I would have thought ...

28. Manual setting ID of class with assigned generator.    forum.hibernate.org

Hi there, I've go one problem - I'd like to be able to use both 'worlds' of setting IDs of my POJO classess. I would like to have it automatically generated BUT if I will save class with ID already set - I'd like that predefined ID to be used... Is it possible? What's the easiest way to do this on ...

29. Problem/misunderstanding about ID generator    forum.hibernate.org

Yes I have the id column set to auto_increment. When I use generator as "increment" it assigns the first row 1, then the second row 16777215, then the third insert gets an exception: 14:39:23,834 WARN JDBCExceptionReporter:71 - SQL Error: 1062, SQLState: 23000 14:39:23,844 ERROR JDBCExceptionReporter:72 - Duplicate entry '16777215' for key 1 14:39:23,844 ERROR AbstractFlushingEventListener:277 - Could not synchronize database state ...

30. Problem with jtds driver and indentiry generator    forum.hibernate.org

Hibernate version:Hibernate 2.1.8 Name and version of the database you are using:SQL Server 2000 I used mssql jdbc driver in my application and I had problems when selecting columns of type text. After a little searching I found that is a known problem with this microsoft driver and I changed it with jtds driver. Now the problem is that it seems ...

31. Generator id database independent solution ?    forum.hibernate.org

As I understand from Hibernate documentation, if I set generator-class="native" it will pick for each db the "native" solution for generating id's, and for Oracle db for example it will pick "sequence". If the sequences are not automatically created and you have to provide their name this is not an db independent solution.

32. What is the Fastest ID Generator    forum.hibernate.org

Hibernate version: version 3.0.3 Code between sessionFactory.openSession() and session.close(): All the program is doing is to trans.beginTransaction(), session.save(), session.flush() then trans.commit(), this is the whole cycle when inserting 1 record at a time. Name and version of the database you are using: PostgreSQL 7.4.1 IBM DB2 6.0 Server Not clustered. The problem is it's taking time to insert all the 20,000 ...

33. configure connection pool and ID generator for faster insert    forum.hibernate.org

Hello, I have been searching for approaches to improve inserting performance with Hibernate in the past several days, Here are some suggestions I found: Quote: inserting data to DB can be very fast under Hibernate. Using Hibernate and Oracle we have achived about 2000 inserts/sec. But you have to remember about few things: 1) Do not use default connection pool 2) ...

34. id increment generator mapping to string    forum.hibernate.org

35. Informix ID Generator class and Informix 7 or 5 DataTypes    forum.hibernate.org

Newbie Joined: Thu Sep 29, 2005 12:23 pm Posts: 1 Location: Argentina Hi ! The informix dialect maps an ID field with generator class native, increment, identity o sequence to serial8 or int8 Informix DataTypes, but this are only for Informix 9 and i need use it in Informix 7 and even 5 Check at the column EVENT_ID of the Mapping ...

36. Identity Generator    forum.hibernate.org

Hibernate version: 3.05 Name and version of the database you are using: Multiple - so sequence support cannot be assumed I am building distributed system with separate databases, same structure, that need to be combined into a larger database. However, each will be detached from the larger database most of the time. I have no legacy data so am interested in ...

37. ID generator    forum.hibernate.org

38. oracle trigger generator    forum.hibernate.org

Hopefully this is not a duplicate question. I checked the forum and didn't exactly find the answer. We are using Oracle. For a given table we have a primary key which is set by a trigger before an insert is performed, for example. The trigger simply calls a sequence to get the nextval which is set as the primary key. While ...

39. Create a class thats an id generator    forum.hibernate.org

40. How Hibernate generates id using generator-class="incre    forum.hibernate.org

Does anybody has a more detailed answer at this question ? All that exists in the documentation 2.1.7 is: increment - generates identifiers of type long, short or int that are unique only when no other process is inserting data into the same table. Do not use in a cluster. Thanks, Cristian.

41. Question about generator type="identity"    forum.hibernate.org

Hi I posted this query on the wrong board: I wrote: Is it possible to set the identity field of an entity and have session.save persist the class using the specified value for the identity field ? Currently it just seems to be ignoring the value, using the new one retrieved from the mysql auto_increment id field instead. I know it's ...

42. ONE-TO-ONE MAPPING AND foreign GENERATOR    forum.hibernate.org

Hello, I`m new to hibernate and now i`m trying to make a one-to-one mapping. The following are the .hbm.xml codes. Why am I gatting this: org.hibernate.MappingException: could not instantiate id generator Parent Class: calendarioOuro ...

43. idbags and generator assigned    forum.hibernate.org

Hey guys, I have an association table which has a surrogate key (a primary key per se) and am trying to use IDBAG to insert the data in the association table. TABLE: BUDGETTOBUDGETCATEGORY BUDGETTOBUDGETCATEGORYID (PK) BUDGETID (FK) BUDGETCATEGORYID (FK) DATECREATED DATEMODIFIED This table maintains a many-to-many relationship between Budget and BudgetCategory tables. I don't want to create a class for the ...

44. could not instantiate id generator    forum.hibernate.org

45. Generator best strategy with hibernate 3.1 with postgresql 8    forum.hibernate.org

I'm using Hibernate version 3.1 rc2, Oct 07, 2005 with Postgresql 8.0.1. Im trying to use a unique id generator into all tables. What kind of strategy should I implement? Is that right using one sequence to all tables into database? May I use "seqhilo" to all s using the same sequence? How large is the range of unique ids generated? ...

46. unsaved-value="0" for native generator not working    forum.hibernate.org

Dear all, I have problem with sesion.load(Test.class, new Integer(id)) with the native type of generator if Id is zero. Previously, this has been working fine with "increment". the returned object is null. But after I changed it to "native", the same code returns "something" as Test$$EnhancerByCGLIB$$xxx when I use debugger to step into it. I can't access any of its value ...

47. Custom generator class id    forum.hibernate.org

48. PostgreSQL and Hibernate generator issues    forum.hibernate.org

Not sure what the error is as you did not supply it. Having said the the obvious first thing is to check that you have created the sequence in the database. I would normally name a sequence when using the sequence (or native on a db using sequences) - to do that see docs. If it is not named it assumes ...

49. Question for Gavin: custom generator id class    forum.hibernate.org

Hi Gavin, I address this question to you because that's you that created the generator id classes. I have a legacy db where the tables' ids are generated using a package procedure next_val(sequence_name) and I have access to the sequences only through this package. I have to create a custom generator id class that uses this procedure to generate the id ...

50. hilo generator and "supplying your own connection"    forum.hibernate.org

hi all, i would like to use seqhilo to generate id with hibernate 3.0. the document says the following: Unfortunately, you can't use hilo when supplying your own Connection to Hibernate. When Hibernate is using an application server datasource to obtain connections enlisted with JTA, you must properly configure the hibernate.transaction.manager_lookup_class. i am not sure what it means by "supplying your ...

51. Custom generator with assign and native support    forum.hibernate.org

I'm trying to specify an identity field that is usually set by the database (as "native" identity properties are), but that can also be set explicitly by the application code (as "assign" properties are). (This behavior is needed for integration with legacy applications, test code, and code that can't use Hibernate.) Using Hibernate 3.1, my approach has been to derive a ...

52. Identifier generator for UserType    forum.hibernate.org

Mapping documents: This is regarding the userType problem in the above mapping article_id is autogenerated by db and articleversion is assigned by user. could u plase show some way to write the Generator(ID Generator) or ...

55. Custom id Generator    forum.hibernate.org

Hi, The problem I am facing is with repsect to PK of the table. One of them is using oracle sequence and the other is a foreign key of another table which is like a CONSTANT (A number). When I need to insert data for the object instance, I have to use the compsoite key (one for oracle sequnce and other ...

56. generator class="assigned" or native ? or ?    forum.hibernate.org

I have two tables A and B. B is child table of A. A have Primary Key and a seq assigned to it. B have a Primary key and seq assigned to it and alo FK which is the PK in Table A. For table A I need to insert a PK value So I used But for ...

57. Distributed (replicated) database ID generator    forum.hibernate.org

I designed an ID Generator Hibernate class that is multi-platform friendly (similar to native id generator) but additionally provided for safe values in a distributed database environment. I wanted something that could be implemented natively on many databases (i.e. Oracle, Firebird, MySQL, etc.) without the need for loading extra library code into the database (i.e. Oracle 8 doesn't support out of ...

58. How to Programmatically change generator from seq->assign    forum.hibernate.org

Hi all, I was wondering how to programmatically change the sequence generator of a class in Hibernate. For instance, in the below excerpt, I normally generate an ID from a sequence in the DB. Someone has requested that I take input of the ID instead of using the sequence. So, in his case, he gives me the sequence number, but in ...

59. Increment Generator Params    forum.hibernate.org

Hello, I'm trying to get a simple increment generator working on a MySQL database that I'm running on my notebook computer. The generator won't instatiate. I figure I must have forgotten some params. I've looked all over this website and the reference docs for params that I might be missing; however, I don't see the increment generator described anywhere -- at ...

60. how to have without generator class?    forum.hibernate.org

Hi! I want to have this primary key mapping(id) but I don't want any generator for it. I want to assign the value myself before it gets inserted/updated. How do I do that? I tried generator class="native" generator class="assigned" but it doesn't work. If I omit the generator tag then I get an error for that hbm.xml file when it's read. ...

61. The generators does not work?    forum.hibernate.org

I am trying to run the example from hibernate reference. I am using Hibernate 3.1 and MySql server 5.0. The class to be stored is the following: public class Event { private Long id; private String title; private Date date; ...setters and getters } the mapping file is the following: ...

62. code generator    forum.hibernate.org

63. Custom Id Generator with String type    forum.hibernate.org

Hi, Hibernate version:3.1 In our project we have the requirement to develop a Custom Id Generator which should be of type String and the value in the column of the table with the name of the table and Id generated by the sequence. For Example: - If name of the table is EMP the values in the Empno should go as ...

64. identifying what algorithm generator="native" used    forum.hibernate.org

Hi all, I've been assigned to create a JDBC implementation for some of our hibernate queries. However somne of our classes used genarator="native" in generating the primamy key. Now I need to know what hibernate used for primary key generation algorithm so that there won't be any possible conflicts with the JDBC implementation. We're using Oracle 10g as database. According to ...

65. xdoclet / hibernate foreign key generator param issue    forum.hibernate.org

I have not had a chance to look into whether or not the issue is with Xdoclet (I am using a 1.3 snapshot), but I think the problem may also reside in Hibernate itself. Using XDoclet to generate the Hibernate mapping files and for a one-to-one mapping in the child class, the resulting relavent hbm file is as follows:

66. custom id generator    forum.hibernate.org

Hi , i have a user class ,it consists one is id as string type and another one is name which is also string type my data base table name is sampleTest , i have to generate id in db2 database which is this formate abc1, abc2,abc3 .... like this only , please tell me how can i implement , if ...

67. sometimes generator class="assigned", sometimes &q    forum.hibernate.org

hiho, in a persistance layer for jasper reports (ussrp.com) there is a Report object. in data loading, the pk must be explicit (to support sub-reports). at runtime, when a user uploads a new report, the pk must auto increment. ussrp accomplishes this by having two hib. mapping files for the one Report object. (there is a second 'ReportAssigned' object which is ...

68. Accessing a id generator    forum.hibernate.org

do you need some handle to the "generator" or are you interested in just getting the "ID" that is assigned to the record? if the first, then perhaps something off of "configuration" object when you create the SessionFactory. The second would be had, but simply issuing the session.save(object) - the ID is assigned at this point, and the actual insert is ...

69. Information on "increment" generator algorithm    forum.hibernate.org

70. Hibernate's generator    forum.hibernate.org

Can we have the option to use Hibernate's generator capability on other field of table since that can only be used for identifier columns and there is already an identifier column defined for this table ? In below mapping file, there is directShipOrderId which is associated with generator class (Italic), I want to make directShipOrderNumber (bold)autoincremented e.g. A0000001, A0000002... so on. ...

71. use of in hibe    forum.hibernate.org

72. uuid.string generator fails    forum.hibernate.org

...

73. Reason: could not instantiate id generator    forum.hibernate.org

I'm developing an eclipse plugin and it uses hibernate (v 3.1.3) I'm using MySQL v5 I'm getting an error stating java.sql.SQLException: No suitable driver although I do have mysql-connector-java-3.1.12-bin.jar in my jre/lib/ext Since a plugin's runtime environment is different does it require the jar file to be placed in a different place or specified elsewhere? The exact error is: java.sql.SQLException: No ...

74. generators    forum.hibernate.org

75. Question with id generators?    forum.hibernate.org

76. Fabricated ID Generator    forum.hibernate.org

1. where's your sequence stored? 2. Would you be better off having a get method which returned the generated sequence value and set it as a normal property if it's based on another value? You could do the (painful) 'if not null then generate else return' for new or current entries, so it only calculates for new objects obvious issue is ...

77. ID ==>     forum.hibernate.org

78. Dynamically determine generator-class of id-field?    forum.hibernate.org

Hibernate version: 3.1.2 Name and version of the database you are using: MySQL 4.1.12 Ok; here's the problem. I'm creating a sort of 'hibernate-my-admin' application. So I have an insert page that determines the needed fields for a given classname. Before I can show the form, I need to know if the identifier field of the object is 'assigned' (So I ...

79. to generate a custom generator id    forum.hibernate.org

80. HiLo ID generator    forum.hibernate.org

81.  ?    forum.hibernate.org

82. Id generator for trigger    forum.hibernate.org

I'm trying to solve the same problem, although I'm using oracle 9i. I tried the "select" generator, but it's not quite working. From my HBM file: OID When I run with this, I get the exception that follows this. My Java "oid" property is an "int", and my column is defined as ...

83. Generator="increment" problems    forum.hibernate.org

HI! I have some problems with this kind of Id generator - I save a newly created object in the session, and then I commit the transaction and close the current session. Then for the purpose of the generation of the new id, hibernate selects the max ID and inserts a new record in the DB. But sometimes Hibernate doesn't print ...

84. problem of duplicate entry with 'increment' ID generator    forum.hibernate.org

I use hibernate 2.1 with spring framework, and the database is mysql. Very occasionaly, I got duplicate entry error of duplicate entry. The persistence related code is as follows: ---------------------------------- public class HibernateDAO{ ........... public void save(Object o){ //o is a object with id of int type. //The id is generated by Hibernate 'increment' ID generator try{ getHibernateTemplate().save(o); }catch(Exception ex){ Log.error(ex.getMessage()); ...

85. Need oracle-local generator that can look at existing rows    forum.hibernate.org

Hibernate 3.0.5, Spring 1.2.8, Oracle 9i. In my app, I think I need two different kinds of id generators. I have a couple of tables where all the content is generated while the app is running. For these, I'll use a normal sequence. These two tables will continue to accumulate rows while the application is running. However, I have several tables ...

86. Select generator results in JDBC ex converting ROWID to int    forum.hibernate.org

Hibernate 3.0.5, Spring 1.2.8, JDK 1.4.2, Oracle 9i, WebLogic 8.14. To summarize some issues I've been asking about in the last couple of days, I'm seeing an exception like the following when I try to write a row using a "select" generator where the table has a trigger and a sequence to create the primary key value. My "select" generator is ...

88. MySQL Hibernate Identity Generator    forum.hibernate.org

I apologize, I am still missing something. The way I used this in the past is that I created an object, left the id parameter as null (or what ever you set as unsaved-value) and save it to the database. When you save the database fills in the field. After this point you do not change the ID. At what point ...

89. Native ID generator specifying starting value    forum.hibernate.org

90. byte array id generator    forum.hibernate.org

Hello, i use Sybase for my database and an old school persistence framework for C++. I'd like to migrate to Hibernate but i need an id generator for my datas that generates unique byte arrays as my old framework does. Do you know where i could find such a tool for java ? Many thanks.

91. How to Make increment generator always fetch value from DB    forum.hibernate.org

Hi , i was hitting this exception Supposed i have this table called AUDIT TABLE and created a POJO for this using increment generator Every Success Operation i will insert to this table The Problem is , hibernate cache the max id when the application starts and just increment the value when there is inserting to this table. Lets say when ...

92. Reverse engineering ID generator from mysql auto_increment    forum.hibernate.org

Hi Guys, I've been looking into this for the last couple of hours to no avail, so hopefully someone on here can help. I've got a simple table in MySQL with an BIGINT field declared with auto_increment , and also as a primary key. When using the Hibernate tools in Eclipse to reverse engineer the DAOs from the DB schema I ...

93. JSP generator engine from mapping files    forum.hibernate.org

Hello forum, I'm generating a web application. It's a simple ecommerce. In this application there are two facets: * Users: buy, view articles, ... * Administration: Add articles, suppliers, ... I remember I have seen an engine that generates JSP pages in order to manipulate entities (data od tables) from hibernate mapping files. I would like add this JSP pages in ...

94. ConstraintViolationException when using generator increment    forum.hibernate.org

I just updated to Hibernate 3.2 from 3.1, and to Spring 2.0. Now I occasionally am getting a ConstraintViolationException when several records are written to my transaction_history table in a single second. After the exception is thrown every insert to the table fails with the same ConstraintViolationException. I have to restart Tomcat to resume operations. Does Hibernate need me to do ...

95. generator class='?" if using trigger to do id generatio    forum.hibernate.org

Hi, here is my xml file here is the trigger CREATE OR REPLACE TRIGGER TRG_VALUE BEFORE INSERT ON value FOR EACH ROW BEGIN SELECT VALUE_SEQ.NEXTVAL,user,sysdate,user,sysdate INTO :new.attr_val_id,:new.cuser,:new.cdate,:new.muser,:new.mdate FROM dual; END; When I try to insert, I got an error like ORA-02289 sequence does not exist select hibernate_sequence.nextval from ...

96. ID GENERATOR THREAD SAFE WITH ORACLE 9    forum.hibernate.org

Hello, I'have a problem. I have read online that id generator increment is not thread safe. For this i have some problem in my servlet based application. Sometimes i have exception for duplicate id if two thread work. I use Oracle...for kill any problem what id generator i can use that work very well with oracle? Native?Sequence? Help me. Thank you. ...

97. Generator Discussions    forum.hibernate.org

This topic is not exactly a problem, but a discussion. We here are implementing a huge system, with many entities. One of our development decisions is that we'll have a superclass for every single entity in the system. All our entities will extend this superclass, named SuperEntity. The id for every single entity is to be defined in the SuperEntity, and ...

98. increment generator    forum.hibernate.org

99. How to use multiple generators    forum.hibernate.org

100. Custom Id Generator - Number of instances created?    forum.hibernate.org

Hibernate version: 3.1 Name and version of the database you are using: mySql 5 Hi, I'm using a custom identifier generator e.g. I use this custom generator for more than one entity i.e. the above tag is used in multiple .hbm.xml files that each map a unique Java class to a [unique] table. Question: If I use the ...