middlegen « Core « JPA Q&A





1. hibernate middlegen    coderanch.com

2. Middlegen Hibernate issue    coderanch.com

Hi All, Does anyone know how to change the default mapping that middlegen uses while reading database schemas to generate hibernate ( *.hbm.xml) files. I am using middlegen to connect to a oracle database and middlegen seems to map columns of Float datatype in the database to type Object in the hbm.xml files. Similarly for Oracle column type Number it is ...

3. Middlegen plugin:    forum.hibernate.org

what kind of help are you looking for. middlegen will only create hibernate hbm.xml files for you as it is written. I wrote my own template to make it generate java files with xdoclet tags. The only real issue I found was the postgresql driver shipped with either xdoclet or middlegen was too old. You need to dl the latest middlegen ...

4. Well DAVID about middleGen    forum.hibernate.org

5. Well DAVID about middleGen-CVS    forum.hibernate.org

6. Middlegen differents class and table names    forum.hibernate.org

7. middlegen and composit keys    forum.hibernate.org

All, It appears as though the the middlegen plugin is not properly generating the composite key entries within the *.hbm.xml. In my system, I have multiple tables with two keys. The middlegen GUI properly identifies it as needing a compound key and a primary key class, but the entires do not generated into the *.hbm.xml files. This leads to SAXParsing exceptions ...

8. Problems using middlegen    forum.hibernate.org

Middlegen (just about all setup) can be downloaded from the hibernate download page on sourceforge. It includes a sample that can be used as the basis of your work. In addition, at JAOO we create a tools example (including Middlegen) that shows how to use all of the tools all launched from Ant. Dowload from the examples wiki page.

9. Generating relationships with Middlegen/Hibernate plug    forum.hibernate.org

Hi, I am very new to Middlegen and Hibernate. I have followed the example of how to use the Hibernate plugin for Middlegen and have made progress with the exception of generating the associations in the resulting Hibernate xml files. I am using the latest stable version of MySql, the Middlegen task in my build file happily connects and picks up ...





10. Middlegen-Hibernate-r2: generating with old DTD?    forum.hibernate.org

11. Middlegen and SQLServer 2000 Wont play nice.    forum.hibernate.org

Middlegen is telling me that it can connect to sql server, it can find my database and all configured catalogs, but it cannot locate ANY Schemas. I'm using middlegen-hibernate-r2. I've tried using 2 different inet jdbc drivers (including the one specified in the mssql.xml file), the Microsoft JDBC Driver AND the odbc bridge. Any ideas???

12. Middlegen r3 corrupted zip files    forum.hibernate.org

13. Middlegen - strips off character.    forum.hibernate.org

I have a table called, for example, BANK_ATS. When I used Middlegen (r3) to generate this table, it names my hbm.xml file BankAt.hbm.xml and then hbm2java creates the java file as BankAt.java. I am not specifying specific tables, just letting Middlegen generate every table in my schema. Any suggestions why this might be happening and what I might do to fix ...

14. Middlegen-Hibernate-r3.zip and sourceforge.net    forum.hibernate.org

Not sure what your problem is. Many have downloaded it fine and are using the package. I suggest you try it again. This is a binary download which is what I recommend you use. The source is not in the hibernate CVS server but in the Middlegen CVS which is also hosted by sourceforge.

15. Middlegen-Hibernate-r3 compaoundKey error    forum.hibernate.org

hello I am trying Middlegen-Hibernate-r3, I want to use hbm2java to generate the java file for Flight.hbm.xm,Person.hbm.xml,Reservation.hbm.xml, but I am getting the following errors. panic-if-driver-not-present: middlegen: [echo] Class path = C:\Middlegen-Hibernate-r3\Middlegen-Hibernate-r3 [middlegen] Database URL:jdbc:hsqldb:C:\Middlegen-Hibernate-r3\Middlegen-Hibernate-r3/build/hsqldb/airline [middlegen] No

elements specified. Reading all tables. This might take a while... [middlegen] ******************************************************** [middlegen] * CTRL-Click relations to modify their cardinality * [middlegen] * SHIFT-Click ...

16. Middlegen problem    forum.hibernate.org

I have two questions. I think they may be bugs as well: 1) In the Middlegen GUI, I select a Key Generator, say "sequence" and enter the sequence name in the box beside the dropdown. I then go on to some other table and click on it. If I would go back to the original box it goes back to saying ...





17. Timestamp mixed type with Middlegen R3    forum.hibernate.org

david wrote: From wht you are saying hbm2java is not correct so its not a Middlegen issue as such. How about you provide small snipit of code fragments so we can verify if this is issue. Thanks. --------- Tools: --------- Hibernate 2.0.3 Middlegen R3 hibernate-extensions 2.0 ---------------------------------------- Mapping file (generated with R3): ----------------------------------------

18. Hibernate/Middlegen generates multiple columns    forum.hibernate.org

I am using Hibernate 2.0.3 and middlegen-2.0-b2-dev.jar and middlegen-hibernate-plugin-2.0b2-dev.jar. Using a ant task as shown below, I want middlegen to create the hbm.xml-files from my existing database. The problem is that some of the tables get multiple instances of its columns. I could correct this manually afterwards by editing the *.hbm.xml-files, but this is not a good solution. I have searched ...

19. Middlegen- Oracle9i NUMBER to Integer    forum.hibernate.org

I am usig Oracle9i Release 2 database and latest jdbc driver for that, ojdbc14.jar. I am using Middlegen to generate the Mapping files. Problem is, Middlegen map all the columns of type NUMBER to java.math.BigDecimal. I want to map some columns to Integer. I know you can change the java type manually in the GUI. But I have lot of tables ...

20. Middlegen-Hibernate-r3, run example error    forum.hibernate.org

Two things: 1) The options you have indicated do not both need to be set. If you only want Xdoclet markup then genXDocletTags="true" will do. The other option was a request to generate composite key class as an integrated form. This is not recommended. 2) The problem you have is the hibernate DTD. You will need 2.1b6 DTD (does not matter ...

21. middlegen-hibernate error    forum.hibernate.org

I downloaded middlegen-hibernater2.zip. After I set this up, I made a little change to point it my own database (oracle). I manually run the sql scripts provided (airline). Double checked the three tables are in db. Then I ran the build.xml. I got error: BUILD FAILED file:D:/projects/wmrs-new/build.xml:157: middlegen.MiddlegenException: The database doesn't have any table named reservations. Please make sure the table ...

22. 2.1RC1 breaks some Middlegen generated files w/ foreign keys    forum.hibernate.org

I have two tables, QWB_EXTRCT_VW_CLMN and QWB_FLDR_CLMN. QWB_EXTRCT_VW_CLMN has a composite primary key with columns EXTRCT_VW_NUM and FLDR_CLMN_NUM, FLDR_CLMN_NUM being a foreign key to the (single) primary key of the QWB_FLDR_CLMN table. Middlegen generates the following mapping for QwbFldrClmn: @hibernate.id generator-class="assigned" ...

23. Hibernate Middlegen plugin - cant find any tables    forum.hibernate.org

Hi, When i am trying to run the Hibernate plugin for Middlegen to generate configuration mapping files it gives this exception "middlegen.MiddlegenException: Middlegen successfully connected to the database, but couldn't find any tables. Perhaps the specified schema or catalog is wrong? -Or maybe there aren't any tables in the database at all?" Iam using the DB2 DB , i am sure ...

24. Middlegen with genXDocletTags    forum.hibernate.org

Newbie Joined: Tue Dec 09, 2003 8:31 am Posts: 17 I had been testing out using the following process: 1 - Generate hbm.xml using middlegen 2 - Generate java code using hbm2java I am using an Oracle database and connecting via jdbc. Everything was working until I set the value of genXDocletTags to "true". When I run my test I receive ...

25. setting unsaved-value with middlegen/hibernate plugin?    forum.hibernate.org

In using middlegen/hibernate plugin to generate .hbm.xml files, can the "unsaved-value" for an id field be set either through the GUI or in the perfs files? (Or in some other automated way so as to avoid adding it manually to each of the .hbm.xml's?) IOW, I would like the plugin to generate this: ..... ...

26. Middlegen/Hib Plugin: one-to-many, w/key value on "one&    forum.hibernate.org

All, Using the Middlegen/Hib Plugin I'd like to generate a one-to-many mapping where the "one" side of the mapping simply uses the foreign key value rather than the object referenced by the foreign key. So in the Midgen/Hib generated-prefs.properties file: In the tables section: hibernate.tables.tableB.columns.tableA_id.java-name=tableAId hibernate.tables.tableB.columns.tableA_id.java-type=int In the relations section: relations.tableB-tableA.tableA-has-tableB.enabled=true relations.tableB-tableA.tableA-has-tableB.target-many=false So for the generated object representing "tableA" which is ...

27. Middlegen/Hibernate Plugin: How to specify collection type?    forum.hibernate.org

All, When generating mapping files with the Middlegen/Hibernate Plugin, it appears to configure collections as "Sets" by default. Is there currently a way to configure it for some other collection type? I'd like to use "List". PS Is the Plugin source code available anywhere? Sourceforge seems to just have the binaries. Maybe I can answer some of these questions myself.... Thanks, ...

28. Middlegen 2.0 final pre-release testing request    forum.hibernate.org

Middlegen 2.0 final is about to be released. If possible could a few people get the source from SF (Middlegen CVS HEAD) and give it a whirl. There are a few fixes in both Core and the Hibernate plugin beyond release r3. Thanks. BTW: Once it goes final I will release another package on the Hibernate download site.

29. middlegen and Database views    forum.hibernate.org

Is there any plans to support database views within the middlegen plugin? I know that only a handful of database support [SQL Server in my case] them, but it would be nice if I point it to a database that hand them that it generated the mapping files for like regular tables. Or is this already in r3 and I missed ...

30. New release of Middlegen strangeness    forum.hibernate.org

Author Message craigduncan Post subject: New release of Middlegen strangeness Posted: Mon Jan 12, 2004 5:07 pm Newbie Joined: Tue Dec 09, 2003 8:31 am Posts: 17 I have been using middlegen and hibernate to create a bottum-up persistence. I noticed a new release of Middlegen was out as well as a new middlegen hibernate plugin, so I downloaded ...

31. Diference between Middlegen 2.0 VO and R3    forum.hibernate.org

The changes are documented as a link on the source forge download page, eg, the title of the download. To make it easier here is what it said: This is the fourth release of the Middlegen with hibernate plugin. It includes enhancements and fixes. Changes: o Middlegen 2.0 vo (final) - Middlegen 2 is no longer beta software. o The Code ...

32. Beginner questions about Hibernate Middlegen    forum.hibernate.org

I don't understand the use of Middlegen. I think I cannot do these steps with Middlegen: 1. Graphically design the Domain Model in a object oriented way (including inheritance and so on) with UML class diagram. 2. Generate .hbm files or Java classes with hibernate Xdoclet tags. 3. Generate and execute DDL. 4. For further modifications of the domain model, read ...

33. Possible bug in Middlegen!    forum.hibernate.org

I'm generating my mapping files with Middlegen R3. I got serious problems when I first tried to use "composite-id's". Now, the problem was found. Middlegen is not generating the composite-id components in the right order. In the example below, ManPrev should come first and then ManPrevOper. This gave me "referential integraty violation" each time I tried an insert. MpMpo Code:

34. When does Middlegen choose "long" or "Long&qu    forum.hibernate.org

35. Middlegen: "long" or "Long" for id's?    forum.hibernate.org

When I have a table with a PK of type INT8 with only one column, in the resulting VO generated with Middlegen we get a "Long". This is case of B (PK: y). But when I have a table with a PK with two INT8 columns (composite) and one of them points to an other table, the one that doesn't point ...

36. middlegen tutorial    forum.hibernate.org

I have tried getting my head around middlgen and would appreciate some help. In simple, layman terms, how does one go about configuring middlegen to an already existing database ? I have an oracle database that I want middlegen to connect to so that I can generate the hbm.xml files ? How do I do this ? Any specific ant tasks ...

37. Middlegen & id fields    forum.hibernate.org

Using the GUI it is possible to change the type to native, or in the middlegen prefs file I placed the following property for each table. hibernate.tables.approval_trans.keygenerator=native where approval_trans is the name of the table. It would be nice to be able to set a global default in the hibernate middlegen plugin. I have used middlegen's pk generator for my CMP ...

38. Middlegen r4 + Oracle using Synonyms    forum.hibernate.org

39. Hibernate with middlegen; problems with Oracle db driver    forum.hibernate.org

Hi, I'm running middlegen with ant and I have a Oracle database and want to middlegen to create both hbm.xml and java files if possible. But right now I can't get Middegen to find my oracle jdbc driver. The driver I got today (working fine in Websphere) is classes12.zip but what I can find see in in build.xml and build.properties.sample middlegen ...

40. mysql middlegen many2many    forum.hibernate.org

Hello list, I'am trying to get a many2many relation, but i'am getting the following errors: [middlegen] (middlegen.FileProducer 414 ) Invocation of method 'isRelationshipPkAndNonPkMembers' in class middlegen.plugins.hibernate.HibernateTable threw exception class java.lang.IllegalArgumentException : There is no column named taxatieobjecten_idtaxatieobject in the table named controlelijsten [middlegen] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isRelationshipPkAndNonPkMembers' in class middlegen.plugins.hibernate.HibernateTable threw exception class java.lang.IllegalArgumentException : There is no column named ...

41. No relationship when using Middlegen    forum.hibernate.org

42. Question about Middlegen R5    forum.hibernate.org

Two reasons for the change: 1) I'm able to map many more possible composite key configurations 2) I have a preference for it :-) [It is the recommended approach]. Having said that you just need to de-select the option in the GUI (or in the ant script) and it will behave as R2->R4 did).

43. Hibernate-Middlegen issue    forum.hibernate.org

Does anyone know how to change the default mapping that middlegen uses while reading database schemas to generate hibernate ( *.hbm.xml) files. I am using middlegen to connect to a oracle database and middlegen seems to map columns of Float datatype in the database to type Object in the hbm.xml files. Similarly for Oracle column type Number it is converting into ...

44. Hibernate plugin for Middlegen    forum.hibernate.org

Hi, I'm trying to use Middlegen with the Hibernate plugin to generate the hbm.xml mapping file. I have a Sybase 12.5 database. I can't figure out how to do this. Can someone provide me with a simple build.xml file (and build property file) that I could start with and customize? We plan on testing Hibernate on a prototype web site that ...

45. Middlegen can't see Oracle View?    forum.hibernate.org

46. Middlegen does not generating Oracle views    forum.hibernate.org

Hi, I am generating a mapping to an Oracle View.But it is not generating. I set the includeViews to true in the build.xml file. When i run middlegen through an Ant i am getting BUILD FAILED The task doesn't suport the "includeviews" attribute. can anybody ...

47. hibernate and middlegen and myisam    forum.hibernate.org

Hi, I'm using hibernate 2.1, Middlegen 2.0-vo, MySQL 4.0.20d with MyISAM tables, mysql-connector-java-3.0.15-ga, ant 1.6.2, Linux 2.4.21-4.EL and everything seems to work fine. The gui comes up and I can view the tables of my database. Problem is the relationships are not visible. I ran ant with verbose flag and the following message was logged: "WARNING: Middlegen couldn't find any relations ...

48. Same foreign key pointing to many tables - middlegen    forum.hibernate.org

Hibernate version: 2.1.6 Middlegen: 2.1 Oracle 9i Hi In our database model we have a DESCRIPTION table for text internationalisation. This table has a FOREIGNNODE_ID columns which is defined as the foreign key for many other tables. In the mapping file of each of these tables, there is a set pointing to the column FOREIGNNODE_ID of the DESCRIPTION table, together with ...

49. Oracle via Middlegen to XML, Big Decimal    forum.hibernate.org

Hi All, does anyone know how to change the default mapping that middlegen uses while reading database schemas (Oracle 9i) to generate hibernate (2.0, *.hbm.xml) files. I am using middlegen to connect to a oracle database. Several Datatypes at Oracle (Number, Fload, Integer) are converting into Big Decimal ony (e.g. Oracle "Number" should be mapped to Java "double") [b]Oracle:[/b] Create....... VAR ...

51. ClassNotFoundException: middlegen.DontCloseLog4JLogSystem    forum.hibernate.org

When running the middlegen ant task I get the following exception: ClassNotFoundException: middlegen.DontCloseLog4JLogSystem My issue is similar to the one described at http://www.mail-archive.com/middlegen-user@lists.sourceforge.net/msg01880.html Im on osx 10.4.2 and java 1.4.2_07. Hibernate version: I have tried both with 3.0.5 and 3.1 beta 1 with same result. Full stack trace of any exception that occurs: [middlegen] java.lang.ClassNotFoundException: middlegen.DontCloseLog4JLogSystem [middlegen] at java.net.URLClassLoader$1.run(URLClassLoader.java:199) [middlegen] at ...

52. Middlegen to generate an Object graph    forum.hibernate.org

Hello Everybody, i'm trying to use Middlegen to generate an Object graph of the database schema. A table will be referenced by a node, association by edges. My purpose is to create a hierarchical structure from the database schema. the idea ist to build at first a connected graph and then modify it in a tree. Have somebody any idea. thank ...

53. Hibernate + Middlegen + generating code    forum.hibernate.org

public class A { private BigDecimal xmlFile; // new property that is not mapped on the database. int new_prop; public A() { // read data from file and specify new_prop. new_prop = 2; } // .... }

55. middlegen-hibernate-r5 : couldn't find any tables    forum.hibernate.org

Hello I'm using hibernate 2.1.4 (i aslo tested with hibernate 3) and middlegen-hibernate-r5 in order to generate the mapping files on Sybase DB. My Sybase.xml included in the build file looks like this : Sybase.xml wrote: So ...

56. middlegen exclude tables when parsing    forum.hibernate.org

57. out of memory with middlegen    forum.hibernate.org

58. How to run middlegen 2.0 with oracle 9i..?    forum.hibernate.org

Guys !! Can any one help me out to create POJO and XML using middlegen 2.0 with oracle 9i. Iam able to generate POJO and mapping files using PostgreSQL but it fails when it connect to oracle 9i. Iam sure there is tables in the oracle database. Please help me out :) error is : Buildfile: C:\eclipse-SDK-3.2.2-win32\eclipse\workspaces\SFMS_ORC\middlegen-build.xml prepare: fail-if-no-middlegen: fail-if-no-hibernate: fail-if-no-hibernate-ext: ...

59. Installing Middlegen in Eclipse    forum.hibernate.org

Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message salvin18 Post subject: Installing Middlegen in Eclipse Posted: Wed Jan 14, 2009 1:17 am Newbie Joined: Tue Jan 13, 2009 4:32 am Posts: 3 I need to knw how to install the middlegen plugin Eclipse I ...