File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate Tools / Oracle create Sequence in Mapping Ressource file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Tools / Oracle create Sequence in Mapping Ressource file" Watch "Hibernate Tools / Oracle create Sequence in Mapping Ressource file" New topic
Author

Hibernate Tools / Oracle create Sequence in Mapping Ressource file

Michael Li
Greenhorn

Joined: Aug 26, 2008
Posts: 2
Hello,

i hope somebody can help me.

I want to create *.hbm.xml Files with reverse reverse engineering (<jdbcconfiguration>).

The build script is:
build.xml


revengfile:



This way works fine, but i have more than one table, so what is the easiest way to get the sequences per table : Pattern tbl_*.

so the result should be:


Each Table tbl_* have a sequence with name seq_* (tbl_test, seq_test)

thanks





Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

ml ml , please check your private messages.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate Tools / Oracle create Sequence in Mapping Ressource file
 
Similar Threads
Error in reverse engineering from an existing database
why my oracle sequence id increases by 2 when I use hibernate to insert
jdk5 and ejb3 options unavailable in HibernateTools-3.2.4.GA
HibernateTools Generating Wrong Code
Hibernate: confusion how to include seperate attribute in many-to-many mapping file