1. What are the disadvantages of auto generating the classes in Hibernate stackoverflow.comI am working in a new part of an existing system. What are the disadvantages of auto-generating the classes for Hibernate for an existing database? I just think that whatever design failures ... |
2. JPA java code generation stackoverflow.comI am specifically looking for JPA code generation technique First, what are all the project could generate JPA complaint code? (Eg. HibernateTools) Second, I would also like to customize the code generation utility, ... |
3. How do I get an auto-generated value? stackoverflow.com
|
4. Strange compilation error - GAS3 generated class stackoverflow.comI am pretty new to GraniteDS..So far I have been able to successfully configure it to work with my remote java services as well as generate the equivalent AS3 files from ... |
5. What is the standard way to write a program to generate invoices? stackoverflow.comI am building a billing system. The system needs to generate monthly invoices to Clients. What I am doing now is using a For loop to check all the clients their ... |
6. Log files not generated with Hibernate and slf4j stackoverflow.comIn my application I'm using Hibernate, Apache Commons Logging and Log4J. But my log files are not getting generated. Is these because Hibernate uses slf4j? In my classpath I have the following ... |
7. IntelliJ IDEA Hibernate stackoverflow.comI'm learning hibernate and I am running into some issues. The book i'm reading is Harnessing Hibernate - Oreilly. They explain everything using ANT, but I'm not really in the moood ... |
8. What is a practical process for doing data transformation on a live system when hibernate + code generation is used? stackoverflow.comI have an existing database defined via HBM.XML files (code and sql dml generated via Hibernate tools), and am looking for a practical way to perform data transformation on existing data. ... |
9. Using timestamps causing trouble with WSDL generation stackoverflow.comI have some TIMESTAMP columns in my Oracle database and the JPA entities use java.sql.Timestamp to map them. Using RAD 7, I was trying to generate Web Services for my EJB methods, ... |
10. Generating source with maven-hibernate3 plugin stackoverflow.com
|
11. Lombok with hibernate stackoverflow.comIs this possible? Haven't seen much discussion on it. |
12. How to generate GUID on demand in hibernate? stackoverflow.comI want to generate a GUID id, if user didn't give a name for
|
13. Sun javac doesn't compile generated sources, while OpenJDK one does? stackoverflow.comI am using JPA entities, and hibernate-jpamodelgen to generate sources for classes like |
14. Generating JPA2 Metamodel from a Gradle build script stackoverflow.comI'm trying to set up a Gradle build script for a new project. That project will use JPA 2 along with Querydsl. On the following page of Querydsl's ... |
15. How can I get hyperjaxb3 to generate specific JPA tags? stackoverflow.comI'm trying to get hyperjaxb3 to generate specific tags like @Index, but I've been unable to find documentation or examples on how to achieve this. Any pointers or suggestions would be highly ... |
16. Metamodel classes generated by Hibernate tools stackoverflow.comI'm using Hibernate Tools in Eclipse to reverse engineer the domain entities of an existing database. I more-or-less have everything generating how I want, although I still get a batch of "Metamodel" ... |
17. How can I create a new SequenceGenerator for generating unique values? stackoverflow.comI'd like to know how to create my own custom id generator for JPA. Instead of just having a generator which is a numeric incrementer, I'd like to create an alphanumeric, ... |
18. Generating custom classes using hibernate reverse engineering stackoverflow.comI've created a small spring/hibernate based app, running on tomcat. I am using hibernate reverse engineering tools to generate the DAO and DTOs from database connection. I've seen and modified the ... |
19. Increasing the allocationSize generates a NonUniqueObjectException stackoverflow.comI am trying to insert into my (Oracle) database a collection of |
20. Jersy Rest Resource, NetBeans generated Controllers stackoverflow.comI need some design advice with respect to a Jersy JSE App managed JPA persistence (with single PU), Rest webapp I recently inherited and now "own." I am attempting to determine ... |
21. Netbeans does not recognize Generated JPA Meta Model forums.netbeans.orgI created a Java Library project. I reversed my JPA classes from my DB. After reading this text: http://wiki.netbeans.org/NewAndNoteWorthy#Java_Persistence I included the model gen jar in my project and now when ... |
22. How to generate Domain Objects using JPA coderanch.comI have used Hibernate earlier and I use to generate the Domain objects using Hibernate Tools or any other such plug-ins. Now, I'm trying to learn JPA and I made a sample domain object to represent database table and performed CRUD operations on it from DAO class. However, I would like to know if there is any plug-in or tool which ... |
23. Hibernate synchronizer - generate interfaces? coderanch.com |
24. Problem with hibernate code generation forum.hibernate.orgHello Im trying to use hiberbate code generation with exporters domain code and hibernate xml mappings . The database is Postgresql 8.4.2. When i run the code generation it throws no exception. but no code is generated in the output folder . Can any one tell me why this is not working . Anuja.K |
25. generated-class with hyperjaxb? forum.hibernate.orgI have a question about hyperjaxb; I apologize in advance if this is the wrong place to ask this but maybe someone here can help me. I am used to using the generated-class meta-attribute with hbm2java so that I can write business logic in the derived class and just let hbm2java generate the base class. Is there an analog for this ... |
26. Avoiding generated containts. forum.hibernate.orgI am trying to use annotations to generate my DDL. I have everything working as I like except for one thing. When generating DDL for inherited classes the generated alter table SQL has an add contraint value that is generated like so: alter table ANGELFISH add constraint FK71E495B9C27AFB7 foreign key (FK_ANGELFISH_FISH) references FISH; I would like to add an annotation so ... |
27. How to generate class through MyGenerator forum.hibernate.orgHello guys, I am new to nHibernate (with asp.net). I want to create the class and .hbm file. I have downloaded the tool called 'MyGeneration'. But i don't know how to use it to create class and .hbm files. Can any one please help me in this issue. Is there any other simpler tool to do this. Thanks in advance, Regards, ... |
28. NullPointerException when run Hibernate Code Generation forum.hibernate.orgDear all I'm struggling with a crucial problem when trying to generate code by re-engineering from a MySQL DB. It was running once but now terminates with a NPE and unfortunately no message. I even was at that point where I transfered database objects to my webapp. Setup: Eclipse Galileo 3.5 with GWT and Hibernate plug-in. I can connect to the ... |
29. generating guid dynamically forum.hibernate.orgHi, I want to generate a guid for a non primary key field. Is it possible? i am using reverse engineering from Hibernate tools. Inorder to do it do i need to modify my mapping file and entity classes. My Entity class: public String getGuid() { return this.guid; } public void setGuid(String guid) { this.guid = guid; } My mapping: |
30. How to let NHibernate generate CRUD and execute it by myself forum.hibernate.orgHi everyone, I need to let NHibernate insert/update/delete statement for me and execute it using the function provide by dll. I really need to execute all query through the dll because dll not only insert/update/delete it also do the audit,recovery, etc... And that dll is used by multiple application. Can anyone guide me how to do it? Thanks, Soe |
31. generating primarykey forum.hibernate.org |
32. failed to generate a uniqueConstraint with a name forum.hibernate.org |
33. redundant parameters in generated domain-class constructor forum.hibernate.orgSET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Contact_Centre]( [centreId] [int] NOT NULL, [contactId] [int] NOT NULL, [startdate] [smalldatetime] NULL, [enddate] [smalldatetime] NULL, CONSTRAINT [PK_Contact_Centre] PRIMARY KEY CLUSTERED ( [centreId] ASC, [contactId] ASC )WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ... |
34. Choosing code-generation tool forum.hibernate.orgI'm trying to decide on a code-generation tool to build my persistent classes. I've tried hbm2java and xdoclet, and both seem to work great. Are there advantages/disadvantages to using java->hbm vs. the hbm->java? Additionally, my app uses a stored procedure persister, so I need to write 2 extra classes for each persistent class (one to massage the data from hibernate before ... |
35. Generating sequential values forum.hibernate.orgHi, I am trying to figure out a way to generate sequential values. The db2 version we are using does not support sequences. An example of what I need to do is to generate check numbers. The check class already has a primary key that uses the identity generator. I wanted to create a method like: public static Long getNextCheckNumber(); I ... |
36. Automatic Generation of .xml files ? forum.hibernate.org |
37. Java Classes Generation forum.hibernate.orgHi, I would like to generate two classes from hibernate mapping files; an abstract class containing the mapped fields for a given table and a concrete class (inheriting from the abstract class) that can be modified by developers. This generation scheme allows developers to modify concrete classes without losing the changes the next time the classes are generated; concrete classes are ... |
38. Use xdoclet to generate Hibernate files forum.hibernate.orgHi, I have 2 questions about using xdoclet with hibernate. 1. how can I use hibernate to generate the hibernate.cfg.xml file? 2. how to generate the column mapping for id in my |
39. Plug-in before statement-generation..? forum.hibernate.orgHi, I'm new with Hibernate and I wonder if there are any plugin-interfaces, so that I can manipulate SELECT/UPDATE/INSERT-statement-generation ? I need to do this because I want to use a SQL-function-call for certain fields (in the statement). So for example instead of a generated: SELECT name FROM secretusers ORDER BY name ... I want to have this: SELECT decrypt(name) FROM ... |
40. Thousands of classes generated by CGLIB forum.hibernate.orgHello! Using hibernate 2.1 beta 6. I profiled my app because I got OutOfMemoryError after some redeployments within JBoss app server (3.2.2). Looking with the profiler I see some strange things happening. For example: My app contains a persistent class called com.select.adsystem.model.Element. After the app is deployed, Hibernate configuration is processed and some persistence operations are performed, memory profiler reports several ... |
41. Nothing being generated by Ant and XDoclet forum.hibernate.orgAuthor Message duffymo Post subject: Nothing being generated by Ant and XDoclet Posted: Thu Dec 18, 2003 3:27 pm Beginner Joined: Wed Dec 17, 2003 10:13 am Posts: 33 I'm a total noob who's having trouble getting off the ground with Hibernate. I'm trying to use XDoclet for the first time and I'm having a problem. I've got Ant ... |
42. Tool to generate Hibernate object web screens ? forum.hibernate.orgHellu, I have quite some tables and need to make web screens for maintenance. I am thinking about generating these screens through the direct use of the hibernate java objects. Something like: looping through the members and put them in an input box on the screen through a velocity template.. and do some filtering through configuration. Before I make this I ... |
43. Using interfaces and XDoclet to generate xml and classes forum.hibernate.orgWe have some requirements for our project that will require us to access all persistent data via interfaces. In order to save time I'd like to drive both the generation of Hibernate mapping (xml) files and the actual Java classes that implement the persistent interfaces from XDoclet tags on the persistent interface. Here is an example: Say I have a simple ... |
44. How to generate |
45. Help-me-with-Automatic Generation of .xml files ? forum.hibernate.org |
46. Generating XML from hibernate forum.hibernate.orgI'd like to be able to import and export my hibernate databases to and from XML. Hibernate seems to include enough meta data to allow this but I'm wondering about a few points: 1. Anyone else done this already? 2. Would it be better/easier to query the objects via reflection or to ask hibernate about the generated tables and export the ... |
47. Extendending Hibernate Generated Classes forum.hibernate.orgHi, I used hbm2java to generate a bunch of classes. Now, I am thinking about hand-coding a few classes that will derive from the auto-generated classes. So, I can use Hibernate to persist my hand-coded classes? Are there any restrictions? I figure the new fields won't be persisted, but are there any other issues? How about retrieval? I figure I cannot ... |
48. AbstractMethodError/AssertionError when using generate attrb forum.hibernate.orgAuthor Message delta_vee Post subject: AbstractMethodError/AssertionError when using generate attrb Posted: Tue Apr 27, 2004 9:51 am Newbie Joined: Mon Mar 29, 2004 7:10 pm Posts: 16 Location: Minneapolis, MN/Topeka, KS Hibernate Version=2.1 Database=IBM UDB 8.1 Java Level = 1.4.2 Env = Eclipse 3.0 (m8) OS=Windows 2000 Problem -- when using generate attribute of either: sequence identity native The ... |
49. problem in validatio of hibernate-generated XML files forum.hibernate.orghi all, i have been running hibernate for couple of months without any problems .. however, yesterday while i was testing my software (and deploying it also) i received the following exception aused by: java.lang.Exception: net.sf.hibernate.MappingException: Error reading resource: com/myapp/hibernate/HibernateExpenseType.hbm.xml at com.myapp.hibernate.HibernatePersistenceManager.initHibernate(Hiberna ePersistenceManager.java:90) at com.myapp.hibernate.HibernatePersistenceManager. |
50. Problem with Audit example in Wiki? (Code generation) forum.hibernate.orgit is looking at it and it is even telling you in it's log files ;) ...and I'm quite sure it says that it cannot load the AuditInfoType class because if it could it would call getReturnedClass() to write the proper name. Thus to make it work - place the class AuditInfoType on the classpath for hbm2java |
51. Playing with setFlushMode in IdentifierGenerator.generate() forum.hibernate.orgHi I have written my own IdentifierGenerator in order to map to a legacy DB. Since the generate method needs to access the db fields, hibernate trys to flush the session before executing the querry, which in term calls the generate method ... until I get a StackOverflow. In order to prevent this I changed the flush mode before the query, ... |
52. code generation bug? forum.hibernate.orgAt first I want to make clear terms. There is custom value types which usually contains internal type of entity (I don't know if there is "official" term for that type). So. On code generation if my internal type is internal class of custom value type (ok, I just want to not clutter my space with classes) then generated classes contains ... |
53. generating a data dictionary? forum.hibernate.orgWe are generating our hibernate mappings with XDoclet, we also have our classes and methods documented with Javadoc. We have a requirement for our project to generate a "data dictionary" document - a list of tables, the columns, and descriptions. It occurred to me that all of the data we need is in the Javadoc comments - the standard comments, plus ... |
54. CGLIB generated proxies don't inherit from proxied class forum.hibernate.orgI have serious problems with the CGLIB generated proxy classes in a 1:1 relationship. The generated proxies implement all the business interfaces of the proxied class, but they don't inherit from it, i.e. IPerson myPersonProxy = bean.getPerson(); System.out.println(myPersonProxy instanceof IPerson); // -> true System.out.println(myPersonProxy instanceof Person); // -> false The Hibernate book says that the CGLIB generated proxies both... * implement ... |
55. CGLIB generated proxies don't inherit from proxied class forum.hibernate.orgI have serious problems with the CGLIB generated proxy classes in a 1:1 relationship. The generated proxies implement all the business interfaces of the proxied class, but they don't inherit from it, i.e. IPerson myPersonProxy = bean.getPerson(); System.out.println(myPersonProxy instanceof IPerson); // -> true System.out.println(myPersonProxy instanceof Person); // -> false The Hibernate book says that the CGLIB generated proxies both... * implement ... |
56. Need community advices to generate Postscript forum.hibernate.orgHi friends, i have a problem (not hibernate related). We use FOP to generate PDF for printing. Our printing system (HP DASEL) spends a lot of time to convert PDF to PCL using ghostscript. My question is pretty simple but google doesn't seem to give good infos. We would like to generate Postscript directly (or pcl). The problem is that Postcript ... |
57. Form Generation for Persistable Objects forum.hibernate.orgthanks guys.. the Configuration object seems to be what I was looking for. I didn't have an actual hibernate.cfg.xml before (I guess Spring was generating one for me based on their applicationContext.xml), so I have resorted to using XDoclet's |
58. superclass of generated class the same way Torque does it forum.hibernate.orgI'm trying to switch to hibernate from torque. One thing that Torque does is automatically create a superclass that you can add code to. Specifically, if I have a DVD table in the database then when the java object is created from the xml schema it would create a BaseDVD class that contains all the code and then an empty DVD ... |
59. code generation problems with some names forum.hibernate.orgWe have a problem with certain attribute names in persistent classes. This is just a quick notification, in case the problem is unknown. (I couldn't find anything related to the problem). We generate both Java code and SQL DDL from .hbm.xml files. We had two boolean attributes, named "aSupplier" and "pSupplier". Hibernate code generation generated getter and setter methods: public boolean ... |
60. Is it possible to add new methods to the generated classes? forum.hibernate.orgHi all, I have created some mapping xml files and I also generated the java classes. Now I want to add some methods to some classes like: addChild(). However I am afraid that if I generate the code again the non generated methods will be deleted. Do you know how can I solve this problem? Thank you in advance, Kostas |
61. can i generate xml forum.hibernate.org |
62. Lazy instantiation problem with template generation forum.hibernate.orgHi, I'm having a problem with lazy instantiation when using a template engine (WebMacro). I'm getting sometimes the error Code: 16:17:08,939 ERROR LazyInitializationException:19 - could not initialize proxy - the owning Session was closed org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53) ... |
63. How to generate typedef declarations with XDoclet forum.hibernate.orgHi all, I'm using Hibernate3 with Xdoclet 1.2.2 to generate my hbm files. Now, with Java 1.5, I'm using enumerations (and good aproach EnumUserType defined in Hibernate.org) to create enumeration fields. The problem is that XDoclet does not support Typedef tag, necessary in this case. I created one workaround, moving classes, merging xml files with hbm and etc. It's woks, but ... |
64. nicorrect XML being generated - node repeated forum.hibernate.orgNewbie Joined: Mon May 09, 2005 7:57 am Posts: 5 hello. i'm (new to hibernate and) using verion 3.0.1 to generate an XML view of my data in Sybase 12, using jdk1.4.2_04. it seems to work fairly fine for me (i still have to tweak some mappings), except that i have a type called TaskItem, which has two associations to classes ... |
65. how to generate multiple class instances from one row forum.hibernate.orgI have two classes, Project and ProjectStep, with corresponding tables in a basic one record->one instance setup. For performance reasons (simplifying a bit here), the two are pulled into a view we'll call ProjectCurrentStep. What I want to do is create a mapping that will generate a Project and a ProjectStep for each row returned from this view. It seems like ... |
66. Can't get Ant to use the code generation tool forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0 Name and version of the database you are using: hsqldb_1_7_3_3 Hallo -- I'm really sorry if this is a dumb question, but I promise I've been looking all over for answers & I'm drawing a blank. I'm trying to get the 2nd chapter example from Hibernate: A Developer's ... |
67. build hibernate and antlr generated classes forum.hibernate.org |
68. How does one generate a patch for submittal forum.hibernate.org |
69. Transforming a Hibernate generated object graph to XML forum.hibernate.orgHi - does anyone know of a generic method of converting an object graph generated by Hibernate to XML? I am thinking along the lines of creating an XMLReader that uses reflection to discover bean properties and Hibernate.isPropertyInitialized(object,propertyName) to ensure that it doesn't try to drill down into uninitialised proxies/collections. Has anyone tried something similar, or know of a more efficient ... |
70. artifacts generation problem (no java files generated) forum.hibernate.org |
71. Generating classes without lossing manual changes? forum.hibernate.orgI generate java classes using hibernate tools from hbm.xml files. I would like to manually put business logic in these domain classes. When I make change to hbm.xml and regenrate these classes I do not want loose the business logic I manually put in. 1) Is there way to generate classes or just changes in hbm.xml without lossing the manual changes. ... |
72. Problem generating code forum.hibernate.orgNewbie Joined: Tue Sep 27, 2005 12:19 pm Posts: 3 Hi, I'm trying to generate some code using Hibernate3 tools. The mapping file is: Code: |
73. Problem generating XML output when using c3p0 with Hibernate forum.hibernate.orgI have a java class that exports some data from Oracle as XML. During development, I didn't specifically use connection pooling, but added the relevant settings and files for c3p0 when deployed to production. Without the c3p0 settings (specified below), my XML file looks like this: Code: |
74. Don't see Hibernate Artifact Generation wizard w/ latest forum.hibernate.org |
75. Custom code generation and templates forum.hibernate.orgI'm trying to figure out how to get Hibernate (hbm2java) to using custom code templates during code generation. I found where you can tell the Ant task to look for custom templates in a directory. However, I can't find any documentation on what those template files look like. How do I write one? I'm hoping I can write a custom template ... |
76. Generate unique values using Hibernate and/or XDoclet forum.hibernate.orgHello, I need some help in the following issue: I have a composite id of three fields, and one of them has to be unique. I know that the Hibernate specifications says NOT to use composite id, but the database design demands it. My issue is that I have to generate unique values and I would like that the database to ... |
77. hibernate 2.1 rolling back generated identity values forum.hibernate.orgNewbie Joined: Sun Apr 02, 2006 9:49 pm Posts: 1 I am working with hibernate 2.1 and am having an issue with successfully rolling back objects generated identifier values when a transaction rolls back. I should mention that our system uses "short-lived/fleeting" sessions, only performing work within a transaction when abosolutely neccessary. I will explain what my goal is at a ... |
78. No aggresive release when generated=always forum.hibernate.orgHibernate version: 3.1.3 Mapping documents: Code: |
79. ant eg generates NPE at PrimitiveType.toString() forum.hibernate.orgFixing the toString() methods in package org.hibernate.type produced the following trace ;- 13:28:33,268 INFO CharacterType:95 - could not bind value 'null' to parameter: 5; null java.lang.NullPointerException at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431) at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528) at oracle.jdbc.driver.OraclePreparedStatement.checkBindTypes(OraclePreparedStatement.java:3271) at oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:1322) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:83) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:72) at org.hibernate.type.ComponentType.nullSafeSet(ComponentType.java:261) at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1910) at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1887) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2117) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2503) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at ... |
80. EntityMode.DOM4J - generate XSDs or DTDs? forum.hibernate.orgAs far as I can tell, the new mechanism for importing/exporting objects or records from/to XML does not and cannot generate an XSD or DTD describing the corresponding XML. Has anyone written a tool which would do this? Are there plans to implement something like this in 3.2 or subsequent versions? If I had to write this myself, where should I ... |
81. Hibernate generating a lot of ad hoc traffic forum.hibernate.orgThe setup is Hibernate 3.1 / MySQL 4 / Spring. MySQL Monitor shows about 100 queries/second, and everything works just fine. However, I've noticed that the network traffic has increased tremendously, following a very weird pattern. While my application server is receiving about 1.5MB/s of traffic from the database, it is sending in excess of 10MB/s of traffice to the database. ... |
82. Hibernate code generation hangs with Hibernate tools forum.hibernate.orgHi, I am trying to generate hibernate code using Hibernate 3.1 and HibernateTools-3.2.0.beta6a with Eclipse 3.2. I am usign Oracle 10g with ojdbc14.jar driver. In the Hibernate configurations view, when i expand Database, the status says Fetching Children of database and it hangs there... keep of displaying the same. The same thing happens when i run 'Hibernate code generation' please help. ... |
83. generate toString() forum.hibernate.org |
84. newbie: Using *Home ADO generated by reveng forum.hibernate.org |
85. generated="always" forum.hibernate.org |
86. Problem with abstract="true" and the generated tab forum.hibernate.orgHi, when I specify abstract=true for the mapping of my class, Hibernate generates a table named like the class. But, I want to have one table per concrete class (i.e no table for the root abstract class). How could I achieve this ? Here are some informations : Hibernate version:3.2.0.cr4 Mapping documents: |
87. Standalone auto generation? forum.hibernate.org |
88. What is wrong with my code generation code snippet? forum.hibernate.orgHi Thank you for reading my post. can some one please help me with this problem? I am trying to generate database schema using hibernate schema export features. I should say that i have annotated java classes which i want to generate schema from them. Hibernate version: 3.2 Mapping documents: Code: |
93. generate assigned forum.hibernate.orgHi, I'm new to hibernate, I've tried to find out a solution in user guide and FAQ but couldn't answer my question. I use 'generate assigned' to define id before inserting new rows into some tables of my database. Everything works fine when I deal with existing id (saveOrUpdate performs an update) or if I don't define any id (it is ... |
94. code generation of custom where condition using hibernate forum.hibernate.orgHi all, I am new to hibernate and would like to know does hibernate supports code generation of where clauses automatically instead of giving the SQL statements in session.createQuery(SQL_QUERY). Like for example u have a class "VRepPersTaskListQuery". and has to generate where clauses for that table. VRepPersTaskListQuery query = new VRepPersTaskListQuery(); query.whereReportsToEQ(Id); query.whereOwnedByEQ(Id); query.whereStatusEQ(TaskStatus.COMPLETED); query.setOrderBy(orderBy); query.query(); thanks |
95. Problems compiling hbm2dao generated code forum.hibernate.orgHibernate version: 3.2.2 JDK: 1.4 Hi! I'm happy to leave my first post on hibernate forum! The problem: i was able to generate and compile pojos files with hbm2java ant target but trying to compile dao interfaces (created with hbm2dao) i got a bunch of these: Code: /home/ceztko/development/thgroup/visionehrcv/src/com/thgroup/visionehrcv/model/StatoValutazioneHome.java:99: cannot resolve symbol symbol : method get (java.lang.String,int) location: interface org.hibernate.classic.Session ... |
96. Hibernate Code Generation with SQLExpress forum.hibernate.orgHi all, I am trying to reverse engineering by business objects from SQLExpress Database found on a remote host. I have the following configs : hibernate.cfg.xml Code: |
97. Hibernate Tools Domain Code Generation Issue forum.hibernate.org |
98. Using Hibernate for Report generation forum.hibernate.orgHi All, Currently we have a scenario where in we need to create reports in excel & pdf through java. So ideally we have some complex queries which will fetch us the data. My question here is would it be a good idea to use Hibernate in this scenario. Since this is largely an OLAP kind of an application where we ... |
99. generated="always" not always working forum.hibernate.orgI have a requirement to have a last updated time and a creation time placed into the db upon insert or update. I have triggers in the database that manage the update and creation time and I wanted to tell Hibernate to re-read the values after a create/update operation. So I used the generated="always" This seems to work sometimes. The straightforward ... |
100. Hibernate code generation forum.hibernate.orgI am new bea. I am using eclipse. when i click hibernate code generation. Following error occurs.. Exception while generating code Reason : java.lang.IndexOutOfBoundsException : Index :0, size:0; other than that when i click HibernateConsole --> Datebase there is bunch of warings sample :: !ENTRY org.hibernate.eclipse 2 30000 2007-06-20 09:27:28.836 !MESSAGE WARN Worker-0 org.hibernate.cfg.JDBCBinder - Rev.eng. strategy did not report any ... |