-->
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: Hibernate synchronizer problem with Oracle
PostPosted: Tue Oct 17, 2006 5:13 am 
Regular
Regular

Joined: Mon Oct 02, 2006 12:03 pm
Posts: 62
Hello forum, I'm using Hibernate synchronizer and when I want generate mapping files from my oracle database tables, it generates the mapping file but doesn't create the properties. For example

Quote:
SQL> DESCRIBE STATUS;
Name Null? Type
----------------------------------------- -------- ----------------------------
CODI NOT NULL NUMBER(38)
DESCRIPCIO VARCHAR2(32)


STATUS is a table from my oracle database. However, when I click to New >> Hibernate >> Hibernate Mapping file and select STATUS table the result is:

Quote:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="com.gmsoft.model">
<class
name="Status"
table="STATUS"
>
<meta attribute="sync-DAO">true</meta>
</class>
</hibernate-mapping>


As you can see, Hibernate synchronizer only generates class name, but has not added Id and DESCRIPTION properties.

I have tried it with SQLServer STATUS table and Hibernae synchronizer works correctly. So, it generates Status.hbm.xml file with all properties.

Can you tell me, why Status.hbm.xml file isnĀ“t generated correctly, if I use oracle database?


Thanks in advance


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.