Middlegen « HBM « JPA Q&A





2. Middlegen & hbm2java problems/questions    forum.hibernate.org

Beginner Joined: Tue Aug 26, 2003 2:46 pm Posts: 45 Location: Saskatoon SK Canada I have downloaded the Tools workshop and was successful in doing a bottom-up generation (from database to POJO) using Middlegen and hbm2java. I have now tried to repeat the same process with an Oracle database, and am running into problems attempting to generate the POJOs using hbm2java. ...

3. Middlegen -> hbm2java problem    forum.hibernate.org

I don't have links to pass on but compound keys are not the best database design. Just use synthetic keys and keep away from business knowledge based keys. It will bite you otherwise. The other side is that its so much nicer dealing with the objects, database and mappings with synthetic keys as compound keys just add complexity for no (or ...

4. Middlegen generates hbm xml without ids?    forum.hibernate.org

Thanks joe it is as I suspect. This is already fixed and working on my laptop for the r3 release code base. I plan to release it this weekend (or as soon as possible). There are a number of other enhancements etc and mappings that it will deal with. It is a big upgrade.

5. Middlegen/hbm2java and one to one relationships    forum.hibernate.org

Hi, I have successfully used Middlegen to create a number of *.hbm.xml files against tables my development schema. I am running hbm2java from ant to generate the java classes and all seems to work well except I get a couple of errors when it tries to process 2 mappings files for tables that have a one to one relationship with each ...

6. generate XDoclet markup for hbm2java-Middlegen-Hibernate-r3    forum.hibernate.org

I assume you mean that one (or more) of the class mappings are not parsing correctly for hibernate. Yes this could be the case even with the mapping being valid. There are two possibilities. 1) You are using hibernate 2.1 features and not using hibernate 2.1. This can occur in some of the one to one mappings and some other places. ...

7. Editing generated Middlegen .hbm.xml files    forum.hibernate.org

Hi All, There are a number of properties that the Middlegen plugin does not include, such as JCS and other caching tags, dynamic-update and dynamic-insert, etc. I can manually edit the generated .hbm.xml files to include what I need, but then I lose the ability to regenerate the files if the db schema changes at all, e.g. if I add a ...

8. Middlegen generated *.hbm.xml cause ArrayIndexOutOfBoundsExc    forum.hibernate.org

Hi, I'm starting out with Hibernate 2.0.3 by reverse engineering a 100+ table MsSQL database using Middlegen. When building the SessionFactory I get an ArrayIndexOutOfBoundsException (appended below). I know that incorrect mapping causes the problem, but I have no clue as to which entity is the culprit. I guess I can find the problem by a process of elimination, but with ...

9. Problem with middlegen building .java from hbm.xml    forum.hibernate.org

You should use another config file then your hibernate.cfg.xml. I've had a problem when using my hibernate.cfg.xml and just using another xml file named hbm2java.cfg.xml (can be anything actually) got my hbm2java working. My file has the following lines in it, this should be sufficient. Also make sure the xml file is in the right directory. In ...





10. Cannot generate *.hbm.xml files from Middlegen    forum.hibernate.org

Hello, I am trying to generate *.hbm.xml files from my database but i get always an exception ( libray commons-collections-2.1.jar is there ). middlegen: [echo] Class path = D:\private\dev\MiddleGenTemplate [middlegen] (middlegen.Middlegen 350 ) Registering plugin simple->middlegen.Plugin [middlegen] (middlegen.Middlegen 350 ) Registering plugin java->middlegen.javax.JavaPlugin [middlegen] (middlegen.Middlegen 350 ) Registering plugin plugin->middlegen.Plugin [middlegen] (middlegen.Middlegen 350 ) Registering plugin hibernate->middlegen.plugins.hibernate.HibernateP [middlegen] Database URL:jdbc:microsoft:sqlserver://localhost:1433 [middlegen] ...

12. can middlegen-hibernate generate hbm.xml files partially?    forum.hibernate.org

i installed middlegen-hibernate-r5 successfully, once i click the ''generate'' buton, the whole hbm.xml files can be generated according the database, but now the problems is i have generated the the whole hbm.xml files of my database, but after that i add three tables in my database, can i use the middlegen-hibernate-r5 to generate only that three tables' hbm.xml files ?? !!! ...

13. HBM file Generation using Middlegen and to add cache usage    forum.hibernate.org

I am using ant script to generate hbm files. But, how can I implement t o get populated in my hbm files. My current script looks like below and if anyone can help me out with this then it will be a great help. Code: