-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: reverse engineering works much better with the latest cvs
PostPosted: Wed Jul 20, 2005 3:14 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hibernate version: 3.0.5
Hibernate tools version: 3.0 alpha 4a

I had a lot of problems on reverse engineering
my database to hbm files. I tried to use the hibernate.reveng.xml
sometimes it worked sometimes not.
Here is the file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>

   <type-mapping>
      <sql-type jdbc-type="DECIMAL" precision='12' scale='6' hibernate-type="java.lang.Double" /> <!-- jdbc-type is name fom java.sql.Types -->
      <sql-type jdbc-type="DATE" hibernate-type="com.ifbag.okular.base.hibernate.usertypes.base.DateType" />
      <sql-type jdbc-type="FLOAT" hibernate-type="java.lang.Double" /> <!-- jdbc-type is name fom java.sql.Types -->
      <sql-type jdbc-type="NUMERIC" hibernate-type="java.lang.Double" /> <!-- jdbc-type is name fom java.sql.Types -->
      <sql-type jdbc-type="VARCHAR" length='20' hibernate-type="SomeUserType" />
      <sql-type jdbc-type="TIMESTAMP" hibernate-type="com.ifbag.okular.base.hibernate.usertypes.base.DateTimeType" />
   </type-mapping>
   
</hibernate-reverse-engineering>
[code][/code]


After I checked out the latest cvs version and compiled it,
everything works fine now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.