1. Enhanced identifier generators forum.hibernate.orgI decided to make use of a Hibernate id generator which meet the following requirements: - safe id generation when the domain is accessed from different applications(different JVMs) - make use of id intervals (do not query the database every time a new ID is needed) After some investigations I choose one of 2 hibernate enhanced identifier generators, it's the org.hibernate.id.enhanced.TableGenerator ... |
2. how to generator id forum.hibernate.orgIn memory means just that. The id generation strategy use some process within that JVM to determine a unique id; although, here the id is only unique to the given JVM. So if you have some sort of clustered environment, or two seperate apps using hibernate on the same same database there is the possibility of duplicating ids. Global id generation ... |
3. Xdoclet @hibernate.generator-param bug ? forum.hibernate.org |
4. Java Code Generation (some ideas from serial generator) forum.hibernate.orgCurrently I do a large amount of java code generation at work. We use Velocity as the engine for the generation. All we did was write a simple java wrapper around it. In the last few days, I have started playing with Hibernate and had (a very quick) look at the (java) code generation program. Here are some of the ideas ... |
5. ID generator - White paper forum.hibernate.orgIs there any thing like In-Memory sequence manager - That will improve the performance. Only for the first time an uid request, we need to go to the database for the max value of the target column - all following request were performed in memory Which document will tell me how the IDs are generated. (ie) Will Hibernate query the DB ... |
6. Id generator question forum.hibernate.orgLooking at what Hibernate has available, and that I doubt it can (or even should) allow for multiple database ID generation using a SEQ type ID. I'd go with creating your own generator class that uses the same principle as the SEQUENCE generator. I'm guessing that the first bit (00001 - 00003) is going to be unique? And that you only ... |
7. TableHiLo generator forum.hibernate.orgHowdy folks, I've a bit of a problem with the TableHiLo generator. It seems to go back to the DB for every new identifier, instead of only going to the DB every MAX_LO identifiers. I'm certain it's going to the DB because I use P6Spy to view the SQL being issued and it shows up there, also the hibernate debug logs ... |
8. Custom ID Generator forum.hibernate.orgI have a table that generates IDs for various domain objects in my application. So my T_COUNTER table looks like Employee 4 Project 10 ..... The problem here is that i have to use an "assigned" generator for all my domain objects(Employee, Project etc.). If i have an association between Employee and Project and want Project to be persisted when an ... |
9. ID Generator forum.hibernate.orgHi all, I'm using the "native" generator class for the Id's in many classes and it works fine ... however in some situations I want to assign an ID manually but seems that save() doesn't consider the assigned id. MyClass obj = new MyClass() obj.setName("name"); session.save(obj) ; #Generate an ID (1) I try : obj.setId(1); obj.setName("name"); session.save(obj) ; #Also generate an ... |
10. generator for BigDecimal forum.hibernate.org |
11. trigger ID generator vs Hibernate generator forum.hibernate.orgHi all! Is anyone using Hibernate to connect to Sybase? We still encourage some strange behaviour. Our main problem is special customer data model. Instead of using IDENTITY column types for generating of IDs, there exist triggers which retrieves the values and populates required columns. However we whatever we tried, we still received an error. If we define ASSIGNED generator, the ... |
12. Native generator or Hilo generator???? forum.hibernate.orgHi everibody, i'm from Argentina and i'm not write excellent english, apologies for any gramatical error. The question is: what generator is better for generate primary keys in tables. For example, fields identity in Sybase database for native generator or uses other table to hold the value of the next id using hilo generator, abut this what is the use of ... |
13. HQL Abstract Syntax Tree Generator forum.hibernate.orgA few questions, if I may: 1) The BNF indicates that the 'HAVING' clause can exist without being preceeded by 'GROUP BY'. Does this make sense? Other SQL BNF's make the 'HAVING' clause an optional element of 'GROUP BY'. 2) The following rules are not referenced in the BNF: collection: ( OPEN query CLOSE ) | ( 'elements'|'indices' OPEN path CLOSE ... |
14. Another HiLo generator question forum.hibernate.org |
15. Id generator for Informix forum.hibernate.orgHi, My Hibernate mapping works well when I use "native" id generator with MySQL, Interbase, DB2 and SQL Server. Now, I am trying to make the application runs with Informix, it seems that the "native" id generator doesn't work. For those who use Hibernate with Informix, can you tell me which id generators you use ? Thank you very much, sylvain_2020 ... |
16. Use of foreign generator with one-one associations forum.hibernate.orgHi, Have a problem where a duplicate record is being inserted for a one-one association with use of foreign generator. I am calling save, cascade is set to none on th one-ones and the association is to an object fetched in a earlier session. I have the following object model: ParentA 1 <------> 0/1 ParentB | | 1..* 1..* ChildA 1 ... |
17. Hibernate id generator uuid.string fails in SQLServer forum.hibernate.orgI have an object with id configured as follows: |
18. one-to-one and |
19. native id generator with oracle forum.hibernate.org |
20. Multiple mappings using the same ID generator forum.hibernate.org |
21. "could not instantiate id generator" Exception forum.hibernate.org |
22. Id generator - min & max range possible? forum.hibernate.orgHello, I am using "hilo" ID generator and I am wondering if there is any way to instruct the db to generate the ids in a specific range, particularly given a "start" value. I am not much familiar with hilo algorithm, but anyway, if it is not possible with hilo, is there any other generator to help achieve this? Thank you ... |
23. Problem creating ID - primary key - Generator - identity forum.hibernate.orgI'm trying to save a transient object like the following. session.save(currentPersistenceObject); xml-mapping : ----------------- |
24. increment id generator not found forum.hibernate.orgCode snip here: Code: |
25. native generator error forum.hibernate.orgHi all, I have some records in a table, added by Hibernate, using native generator. The last aloocated id is, say, 100. If I go and insert by hand a new record with id 101, when Hibernate tries to insert a new record it gives SQL Error: -803, SQLState: 23505 12:44:23,135 ERROR JDBCExceptionReporter:46 - [IBM][CLI Driver][DB2/SUN] SQL0803N One or more values ... |
26. Native Generator Question forum.hibernate.orgI am using native generator to generate my primary key id for two of my objects. The id mapping of both of my objects look like this (note that the classes are mapped to two different tables): |
27. problems with id generator forum.hibernate.orgI have a class mapped to a DB2 table, in which I am using the identity generator for the primary key. In my mapping class I have something like this: |
28. Q: is type 'integer' ok for id with generator 'identity' ? forum.hibernate.orgCan I use the type 'integer' for an id that has generator 'identity' ? I ask because the SQL to create the table created by SchemaExport is wrong for Sybase. If I have the mapping file: |
29. MySQL and Identity generator problem forum.hibernate.orgI use the following construction: MyObject obj = new MyObject(); obj.setSomething("something"); Then: Session sess = HibernateUtil.currentSession(); sess.save(test); sess.flush(); but the above code works only once, then table is empty. my object receives id=0; then this code is invoked in second time - i receive exception: 12:25:22,968 WARN JDBCExceptionReporter:38 - SQL Error: 1062, SQLState: S1009 12:25:22,968 ERROR JDBCExceptionReporter:46 - Invalid argument value, ... |
30. hilo generator algorithm forum.hibernate.orgHi thanks in advance, i am migrating some data in my application. Now the sequence id's that will be generated are from oracle database sequence. After this i will be using my application to work on in which i using the hilo generator. now i am in a fix if the generated sequences from oracle might clash. What should i do ... |
31. Deploying Hibernate as SAR on JBoss - Error: id generator forum.hibernate.orgI have set up my ant builds as docmented in help doc 66.html. I am trying to set up Hibernate as a MBean service on JBoss 3.2.2 RC4. I have 1 JAR and 1 SAR, a JAR with one persistent class and the SAR with the hibernate xml files, the hibernate.properties file and jboss-service.xml for the MBean. If I deplpy the ... |
32. identity generator and database trigger forum.hibernate.orgI am designing an application for a client that uses an Oracle database. The client has a policy that all database inserts use a standard trigger to generate the primary key for a record in every table. The primary key generated by the trigger is a 34 character string. Is there an identity generator which will insert a new record into ... |
33. id, generator forum.hibernate.orgHi, i have an object wich ID is generated with an increment generator (see the snipet) : |
34. problem picking generator forum.hibernate.org |
35. How to use generator class="increment" for VARCHAR forum.hibernate.orgHi, I have two problems when implementing Hiberate (2.1) in my app. 1) I have an Oracle 9i table with a PK column of VARCHAR2(10). Basically this column contains order Id and it must contain only digits. Order numbers are created sequentially and left-padded with 0. Can "increment" be used in this case (the hibernate documentation indicates that the column must ... |
36. using hibernate sql generator only forum.hibernate.orgHi, I'm quite new to Hibernate, but think that it's mostly for mapping an Java object graph to SQL. This is very interesting. However not quite what I want to use it for (at this stage). What I want to know is if it would be possible to use the HQL for generating SQL for different RDBMSs? Our 'problem' is that ... |
37. Questions about hibernate key generator forum.hibernate.orgHow can I determine the next available key for a table, according to hibernate's key generator? I want to get at this data for some direct JDBC inserts. It seems trivial if I implement my own custom key generator, but I'd prefer not to have to do that. I'm using the id generator "sequence" (at least I'm pretty sure, I'm actually ... |
38. Identifier Generator forum.hibernate.org |
39. Custom types and ID generators forum.hibernate.orgRegular Joined: Fri Dec 12, 2003 2:09 pm Posts: 84 Location: San Francisco, USA We strongly type the IDs of our persistent objects so that when we reference objects by ID, we know which kind of object we're dealing with. This makes things more readable, improves type safety, etc. We want to use a Hibernate ID sequence generator that maps database ... |
40. ID with no generator OR foriegn generator w/o backref forum.hibernate.orgHibernate 2.1, Oracle 9i Summary: The particular relational semantics for my system mean that what I really want is an object that has no generator for its id -OR- that uses a foreign key for its ID but does not contain a one-to-one reference to the object that contains its key. I read elsewhere in the forums: deniskrizanovic: Quote: I don't ... |
41. tag inside a |
42. Fail to create a new instance using native generator forum.hibernate.org |
43. Pre-populate database when using uuid.hex generator forum.hibernate.orgHi, I'm using Hibernate 2.1 in my Tomcat/Struts webapp. The user can create a record in the database. I use the uuid.hex generator (in anticipation of wanting to make it cluster-safe). Someone wants me to populate the database with the contents of a spreadsheet. That's not using my app, so the primary key isn't going to be generated as uuid.hex. Is ... |
44. mysql, jboss, what id generator for AUTO_INCREMENT fields forum.hibernate.orgIf I put the same JNDI name for the datasource in hibernate.properties it works. When I swap the hibernate.cfg.xml for hibernate.properties, I get this error. Maybe Im not specifying enough in the cfg file. Here is what I have. |
45. one-toone with a custom ID generator and a cascade="all forum.hibernate.orgI'm having difficulty with a one-to-one mapping. Class A (most all of my classes actually) uses a custom id generator that is contained in my application: |
47. key generator for timestamp forum.hibernate.org |
48. id generator within EJB forum.hibernate.orgCan anyone give me an advice which id Generator to use within EJB's? increment: The documentation gives the advice 'Do not use in a cluster', but we have a cluster -> NO identity and sequence: Depends on the database, but I want to be database independent! -> NO hilo: Documentation says 'Do not use this generator with connections enlisted with JTA ... |
49. How to use generator with Timestamp primary keys forum.hibernate.orgI am accessing UDB 7.2.8 and 8 (DB2 for Distributed platforms). Our DBAs use Timestamps for primary keys on the tables. There is no need to use any generator strategy since current Timestamp gets inserted as we create the row. My question is: How do I set up the mapping for the ids - specifically for the generator. One of the ... |
50. I can't use Customized Generator with Tomcat DataSource! forum.hibernate.orgHibernate Version:2.1.4 Tomcat Version:4.1.30 I have configured my Tomcat DataSource JNDI with the follow code: [code] |
51. id generator forum.hibernate.orgHello everybody, I'm working with an Oracle 8 database which provides sequences to create unique primary key. I have a POJO class "AideFinanciere" with a String type identifier field "aideCode" mapped to a VARCHAR2 column. I would like to use the sequence id generator of the database by declaring in my mapping : (1) |
52. "indentity"/"native" id generator doesn' forum.hibernate.orgHi, It seems that when id "native" or "identity" generator for mysql dilect will generate insert statements like: insert into testtable (id, col1, col2) values (default, ?, ?). I tried this insert statements with mysql innodb tables and get "cannot insert" error, duplicate entry. I could not find the document of the behavior for this "default" pseudo-column in mysql. Have anybody ... |
53. How do I configure the HiLo Generator as a stateless EJB forum.hibernate.orgI'm working with a J2EE application that is using Hibernate 2.1.1 for its persistence layer. This application is designed to work against any one of a set of database types, including Oracle, MS SQL Server and Pointbase (among others). The Persistence layer is configured to use the native generator type. The application will run when using Oracle or MS SQL Server, ... |
54. Generator for read only classes forum.hibernate.org |
55. Increment generator BigDecimal support forum.hibernate.orgI have been in an email debate about this, but have got no where, so I'm raising this in the forum, so that others can contribute. Here are the facts: Regardless of whether this is a sensible situation or not, all the ID fields on a database I am dealing with are defined as DECIMAL (11,0). Now you can debate the ... |
56. Generator Identity Problem forum.hibernate.orgIn my Collection.hbm.xml file (I am using my own collection class). I believe I am getting an error in this file. Here is my Collection.hbm.xml file: |
57. parent/child with assigned generators forum.hibernate.orgHibernate version: 2.1 Mapping documents: |
58. Problem with |
59. could not instantiate id generator --- please help forum.hibernate.orgyes since it fails at fails to instantiate id generator the same code works in eclipse environment and even on command line the same exception is thrown log4j:WARN Please initialize the log4j system properly. Aug 23, 2004 9:33:08 AM com.verisign.vcs.ntc.DBHandler loadConf SEVERE: could not instantiate id generator Exception in thread "main" java.lang.NullPointerException at com.verisign.vcs.ntc.DBHandler.isFileExisted(DBHandler.java:379) at com.verisign.vcs.ntc.FileIO.processImport(FileIO.java:331) at com.verisign.vcs.ntc.NTCLoader.main(NTCLoader.java:22) |
60. Generator and Inheritance forum.hibernate.orgDo you guys know if it's possible to redefine the generator approach for a subclass in Hibernate mappings? I mean, I want the parent class to use "native", but for a specific subclass I want it to use "assigned". If it's not possible, would be possible to force a native generator to use the generator I've setted for the persistent entity? ... |
61. using existing generator forum.hibernate.orghi garyfisher, there is no difference between my example and yours. the dialect I am using is correct. hibernate runs without any problem (when i insert an object the generator will be called), but each time I start the application the error posted above is displayed. There is no problem in using the sequence, but the error doesn't look very fine;) ... |
62. The Id can't be int if I use "native" generator ?! forum.hibernate.org2.1.6 |
63. troubles getting identity generator in MySQL to work forum.hibernate.orgHibernate version: 2 Full stack trace of any exception that occurs: Hibernate: select hibernate_sequence.nextval from dual Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: 1109, SQLState: S1000 Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: General error, message from server: "Unknown table 'hibernate_sequence' in field l ist" Sep 1, 2004 12:42:20 PM net.sf.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: 1109, SQLState: ... |
64. Mapping Question using generator class assigned forum.hibernate.orgI've the following class [code] public class Constraint { private Long id; // A reference to an external constraint. private Constraint nextConstraint; // Getters and setters [/code] The mapping document is defined as follows [code] |
65. InvocationTargetException - native generator forum.hibernate.orgHi, I keep getting this exception and just can't find the problem. I guess it is something to do with the generator. I tried to use the string generators and then it works fine. But as soon as I change it to the long/ bigint type (for id) I get this error. Does mysql have a problem with such ids with ... |
66. Hibernate Id Generator for SQL Server & Oracle 9i forum.hibernate.orgHi folks, I'm a nooby with Hibernate so bear with me... We have a model classes, beans if you like, that have the hibernate xdoclet tags to generate the xml mapping file. And we are planning to re-use these models for multiple projects. But recently a client requested that SQL Server was to be used instead of Oracle. So without keeping ... |
67. saveOrUpdate with assigned generator and version forum.hibernate.orgNewbie Joined: Fri Sep 17, 2004 5:11 pm Posts: 2 I am trying to call the "saveOrUpdate" function to save an object that has no matching entry in the database (i.e. I want it to insert a new row). My call to "saveOrUpdate" tries, instead, to do an update and throws an error. I am using the "assigned" generator for my ... |
68. Generator uuid.string produces duplicate primary keys forum.hibernate.orgI am using Hibernate 2.1.6 in conjunction with an old legacy database transferred to HSQLDB for testing purposes. Since all primary keys are strings I found that I have to use either uuid.hex or uuid.string for generating my primary keys. I decided upon uuid.string. My DAOs use Spring's HibernateTemplate initialized with a singleton SessionFactory, in my test cases I use Spring's ... |
69. why i can only use uuid.hex generator? forum.hibernate.org |
70. Disable temporarily the id generator forum.hibernate.org |
71. one-to-one relationship whith generator forum.hibernate.org |
72. id Generator forum.hibernate.org |
73. Why Doesn't PostgreSQL Dialect Support Identity Generator? forum.hibernate.orgI'm new to PostgreSQL, but according to the docs, SERIAL and BIGSERIAL are similar to AUTO_INCREMENT in MySQL and IDENTITY in MS SQL. Why then PostgreSQL dialect does not support identity generator? PS. BTW, I'm using PostgreSQL 8.0 Beta 3 Dev 1. I guess it's possible that SERIAL & BIGSERIAL are new for 8.0 and did not exist in 7.x. Is ... |
75. could not instantiate id generator forum.hibernate.orgFull stack trace of any exception that occurs: org.apache.jasper.JasperException: net.sf.hibernate.MappingException: could not instantiate id generator org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012) org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345) org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:980) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.RuntimeException: net.sf.hibernate.MappingException: could not instantiate id generator test.ConnectionFactory. |
76. generator and trigger forum.hibernate.org |
77. Hibernate3 problem : could not instantiate id generator forum.hibernate.orgHi, I tried using hibernate3 alpha version in my existing codes that was first implemented with hibernate2.1.6. With hibernate2.jar, it runs fine but with the used of hibernate3.jar - it failed on the sessionFactory = new Configuration().configure().buildSessionFactory() statement with HibenateException of "could not instantiate id generator" Can someone tell me what went wrong and what is missing ... Cheers. |
78. suitable id generator to use? forum.hibernate.orggeneral question. I'd like to know what ID generator is the best to use in this situation. Consider this. I have to develop against both Oracle 10g and SQL Server 2000. So I would like to avoid using both Identity and Sequence at the same time. I don't want to use increment since it is not thread-safe, and I can't use ... |
79. identifier generator with firebird forum.hibernate.org |
80. id generator increment forum.hibernate.orgHi, When you define your generator to be "increment", will it behave similar to a sequence (increment by 1)?. To my understanding, Hibernate will invisibly fetch the MAX ID in the table where an INSERT will occur and increment it by 1. So, in my code, i wont need to manually fetch the MAX ID. Is my understanding correct?. By how ... |
81. Explain max_lo hilo generator forum.hibernate.org |
82. problem with generator classes forum.hibernate.orgcom.element.photohost.exception.InfrastructureException: net.sf.hibernate.HibernateException: The database returned no natively generated identity value at com.element.photohost.business.dao.imp1.UserDaoImp1.saveUser(UserDaoImp1.java:69) at com.element.photohost.test.TestUserDaoImp1.testSaveUser(TestUserDaoImp1.java:44) ...(Click for full stack trace)... Caused by: net.sf.hibernate.HibernateException: The database returned no natively generated identity value at net.sf.hibernate.persister.AbstractEntityPersister.getGeneratedIdentity(AbstractEntityPersister.java:1230) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:530) at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:432) at net.sf.hibernate.impl.ScheduledIdentityInsertion.execute(ScheduledIdentityInsertion.java:29) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:932) ... |
83. Custom Id Generator forum.hibernate.org |
84. joined subclass generator id forum.hibernate.org |
85. How to set an ID manually when using a Hib-Generator class?? forum.hibernate.orgHi, I have the following question concerning generators. I hope someone out there can help me. Thanks a lot for every reply!! I have a persistent class with an Integer-ID. Normally I want Hibernate to set this ID automatically. That is why I mappd it like this: |
86. What is max_lo in hilo generator ? forum.hibernate.orgI double checked, With the code in the 3.0rc1 version, if you give a maxlo of 0, you have a step of 1 and you have twice the 1 value. It you have a value of 1 for maxlo, you have a step of 2 between each hi value. There is only a problem with a 0 value for maxlo. The ... |
87. Generator that uses primary key created by trigger forum.hibernate.orgI use an Oracle trigger to insert the primary key in my tables. Since Hibernate seems not to offer a generator that accomplishs that task, I'm thinking of writing my own generator that after the insert-statement reads the last generated primary key (I do not want to use a Oracle sequence directly in Hibernate). Has anybody done something like that? How ... |
88. Does Hibernate 3 Annotations config support UUID generator? forum.hibernate.orgI've looked through the "EJB3 and Hibernate3 mapping metadata with JDK 5.0 Annotations" document that came with the annotations package (version 3.0 alpha1, 06. January 2005). I am converting an existing 2.x object model over to the 3.0 + Annotations but I don't see any way to define UUID generators. Can someone point me in the right direction or supply a ... |
89. Native generator throw an Exception when session.save() forum.hibernate.orgI do the mapping for CDR using native generator. However, it has throw an Exception when session.save(cdr). Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.AbstractMethodError: com.mysql.jdbc.jdbc2.Connection.prepareStatement (Ljava/lang/String;I)Ljava/sql/PreparedStatement; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mchange.v2.c3p0.stmt.GooGooStatementCache$2.run(GooGooStatementCache.java:325) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run (ThreadPoolAsynchronousRunner.java:148) mysql> desc cdr -> ; +-------------+-------------+------+-----+---------------------+---------------- + | Field | Type | Null | Key | Default | Extra | ... |
90. Query on Native generator forum.hibernate.org |
91. Cannot Instantiate Id Generator? forum.hibernate.orgHi - I am using Hibernate 2.1.7 and Oracle 9 DB, and I have been stuck on this issue for a quite a while - *any* help would be appreciated! I've tried multiple ways to fix this problem, but so far no luck. I am trying to use the sequence generator class, however, I continue to get the following error when ... |
92. Can i force code generator to omit a constructor's argument forum.hibernate.orgHi all, I am a new hibernate developers so my question might seem easy... I have the following mapping xml... ------------------------------------------------------------------------ |
93. guid generator in hibernate3 forum.hibernate.org |
94. generator "assigned" in hibernate forum.hibernate.orgHi, I got the following 'StaleObjectStateException' exception if I use the "assigned" generator. I use the "assigned" generator as my ID like here: |
95. can I do this?. About assigned generator and saveOrUpdate(). forum.hibernate.orgHi!, I have a simple class with the following xml, |
96. What generator class needs to be used? forum.hibernate.orgI have a table as below create table BUYER ( BUYERCODE VARCHAR2(255) not null, BUYERNAME VARCHAR2(50) not null, primary key (BUYERCODE) ); The hbm file is as below |
97. Can I set the generator class value in code? forum.hibernate.org |
98. MappingException: could not instantiate id generator forum.hibernate.orgNewbie Joined: Tue Mar 22, 2005 3:05 am Posts: 2 Hi, I already posted this problem in the tools section but I decided to try to recreate it programatically, and am still at a dead end. My code simply tries to persist one object of the Student class (a joined-subclass of the SystemUser class im my mappings document). I tried various ... |
99. Question about one-to-one mapping using foreign generator forum.hibernate.orgI have read through the manual and didn't find a solution for this. using Hibernate 3.0 and eclipse 3.1 M5 in my case. I have two classes Parent and Child, using the same primary key for association. The Parent class primary key is "assigned" using sequence. The Child class should use the same key as primary key. The Child class contains ... |
100. problem of using id generator classes in creating primarykey forum.hibernate.orgCode: Code: There is a problem in using id generator class, in auto generation of the primary key,in oracle database,we are getting junk values instead of sequence of numbers,and we tried out with all the generator classes,please help me regarding this problem...the required code is given below |