-->
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.  [ 111 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: excuse me!alpha5 can't use artifact generation from oracle9i
PostPosted: Wed Aug 24, 2005 5:42 am 
Newbie

Joined: Wed Aug 24, 2005 1:45 am
Posts: 6
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.0

The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.

org.hibernate.cfg.JDBCBinderException: The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.

what can i do?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 6:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
double posting doesnt help.

go read the docs on configuring reveng.xml files.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: it's so strange
PostPosted: Wed Aug 24, 2005 8:03 am 
Newbie

Joined: Wed Aug 24, 2005 1:45 am
Posts: 6
yesterday i use the follow xml : success
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>
<table-filter match-schema="YUANRIWLCA" match-name="BUSINESSTYPE"/>
<table-filter match-schema="YUANRIWLCA" match-name="BUSINESS"/>
<table-filter match-schema="YUANRIWLCA" match-name="ACTIVITY"/>
<table-filter match-schema="YUANRIWLCA" match-name="ACTIVITYTELCODE"/>
</hibernate-reverse-engineering>


today use the same file, why get a exception?

[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 8:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you havent even shown what is going wrong and you havent configured any type mapping and this is a new version where thing changes - so if there is an error that you cannot fix with a type mapping (read the docs) then submit a jira issue with a reproducable case

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 6:32 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
add last filter like
Code:
<table-filter match-schema=".*" match-name=".*" exclude="true" />


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 24, 2005 9:31 pm 
Newbie

Joined: Wed Aug 24, 2005 1:45 am
Posts: 6
get this exception, when i try to reverse engineer from jdbc connection

use hibernate-tools-3.1.0.alpha5


and i have read the doc about this tool, yet not know the reason.

in my database 10 tables, i have reversed 4 tables into map files and java files. and can get the data form table.

when i reverse another table , get the exception.

please help me, thanks. [/img]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 3:51 am 
Newbie

Joined: Fri Aug 26, 2005 3:49 am
Posts: 11
Same problem here.

Works fine with hibernate-tools-3.1.0.alpha4


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 4:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
have you even tried to map the boolean to boolean instead of Object ? use <type-mapping> as described in the docs.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 4:30 am 
Newbie

Joined: Fri Aug 26, 2005 3:49 am
Posts: 11
I use this type-mapping:

<type-mapping>
<sql-type jdbc-type="NUMERIC" precision="1" hibernate-type="boolean" />
</type-mapping>

and it works in alpha4


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 4:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
see now you guys are finally being concrete ;)

does that not work in alpha5 ? then submit that concrete issue to jira

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: thanks all
PostPosted: Sun Aug 28, 2005 10:17 pm 
Newbie

Joined: Wed Aug 24, 2005 1:45 am
Posts: 6
have solved the problem use alpha4

not use "type-mapping".

I think it will be ok with "type-mapping".

thanks very much


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 1:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that did not make sense to me ?

first, *not* use "type-mapping" and then you say "will be ok with type-mapping" ?

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 1:36 am 
Newbie

Joined: Wed Aug 24, 2005 1:45 am
Posts: 6
there are two ways to solve this problem:

1>use alpha4 reverse from datebase ,then modify the mapping files.

change "type='java.lang.object'" to your required type.

2> use alpha5 reverse from datebase ,first modify the reveng.xml use

type-mapping.


here,I have learn a lot about hibernate. It's a good tools :)

thanks for your hard work.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 2:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
type-mapping also exists in alpha4...but who cares, alpha5 is the present ;)

good to hear you made it work.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 2:52 am 
Newbie

Joined: Fri Aug 26, 2005 3:49 am
Posts: 11
@shszhlrh

Can you post your revenge file you used with alpha5


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 111 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

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.