-->
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.  [ 5 posts ] 
Author Message
 Post subject: about reverse engeneering
PostPosted: Thu Apr 28, 2005 9:06 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
hi

In my database I have a column with name = Prenom and a type varchar2(20)

I don't understand why I get this with tools in my file Person.hbm.xml:

<property name="Prenom" type="java.lang.String">
<column name="PRENOM" scale="20" precision="0" not-null="false" sql-type="VARCHAR2" />
</property>


I don't understand the "scale" .



When I translate to my database, I have an error.


I have found a solution :


<property name="Prenom" type="java.lang.String">
<column name="PRENOM" precision="0" not-null="false" sql-type="VARCHAR2(20)" />
</property>


this work well. Can you explain, please


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 1:04 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
see JIRA 242 - it is solution for your problem


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 29, 2005 10:06 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
snpesnpe wrote:
see JIRA 242 - it is solution for your problem



I 'll see.....
============================================

Hello,

This is little patch for hbm exporter

javaclass.vm call wrong method call $c2j.getJavaDoc
it is $c2j.getClassJavaDoc

JDBCBinder don't define correct precision,scale and length

length is for string column, a precision and scale for numeric

We get mapping like this :

<column name="ID" precision="10" scale="0" />

when id is string or date

Patch do this correct and add sql-type and previous mapping is now :

<column name="ID" length="10" sql-type="string" />

Patch is on http://www.snpe.co.yu/tools.patch (diff -urN)

Regards
Haris Peco

=========================================

I don't understand.


Can you expain to me please, thanks[/list]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 29, 2005 10:07 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
julientarrago wrote:
snpesnpe wrote:
see JIRA 242 - it is solution for your problem



I 'll see.....
============================================

Hello,

This is little patch for hbm exporter

javaclass.vm call wrong method call $c2j.getJavaDoc
it is $c2j.getClassJavaDoc

JDBCBinder don't define correct precision,scale and length

length is for string column, a precision and scale for numeric

We get mapping like this :

<column name="ID" precision="10" scale="0" />

when id is string or date

Patch do this correct and add sql-type and previous mapping is now :

<column name="ID" length="10" sql-type="string" />

Patch is on http://www.snpe.co.yu/tools.patch (diff -urN)

Regards
Haris Peco

=========================================

I don't understand.


Can you expain to me please, thanks[/list]




what I have to do with this patch??


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 29, 2005 10:31 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
apply patch and build plugin or wait that plugin developers apply patch in next release

regards


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

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.