Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > jboss ide using hibernate tools getting JDBCBinderException

Reply
Thread Tools

jboss ide using hibernate tools getting JDBCBinderException

 
 
kjwilde
Guest
Posts: n/a
 
      06-08-2006
System specs:

Windows XP Professional
Eclipse 3.1.2
JBoss IDE 1.6.0.GA
Hibernate Tools 3.1.0.beta5
Oracle 9i

I'm testing out the Hibernate tools portion of the JBoss IDE. I've got
one table in my oracle database. I use the provided wizard to generate
my hibernate configuration file. Then I use the wizard to create a
hibernate console configuration. I believe after finishing this step I
should see the table that is in my database represented in the
Hibernate Configurations view. I do not. This could be part of my
problem however I don't know if there is a log file to look at to find
out. I don't get an error message. I then attempt to generate my xml
files by running the Hibernate Reverse Engineering wizard. I have
followed all of the directions for doing this. When I run the wizard I
get the following error:

Exception while generating code

Reason:
org.hibernate.cfg.JDBCBinderException: Duplicate class name
'mypackagename'.AllRepcolumn' generated for
'org.hibernate.mapping.Table(SYS._ALL_RECPCOLUMN)' . Same name where
generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'

_ALL_RECPCOLUMN is a view in Oracle under SYS. I don't really
understand why hibernate is looking at this view. Is it trying to
generate an xml file for it? If so how do I make it stop?

Any insight to this problem would be greatly appreciated.

TIA
Kevin Wilde

 
Reply With Quote
 
 
 
 
dewsnip dewsnip is offline
Junior Member
Join Date: Aug 2006
Posts: 1
 
      08-20-2006
Have a look at this...

http://www.hibernate.org/hib_docs/to...gineering.html

Use this to include what you want to reverse engineer...

<schema-selection match-schema="foobar"/>

and it will stop oracle sys being included.

John Dewsnip
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Application in JBoss Portal on Liferay JBoss LprzemekL Java 0 04-10-2008 12:03 PM
Eclipse/Lomboz/JBoss: Cannot Start JBoss (Debug) Server from Eclipse Using Lomboz Plugin Jubz Java 0 05-30-2006 10:24 PM
jboss 4.0.3 jboss portal 2.2.1 han Java 0 05-08-2006 10:35 AM
[Q] Eclipse 3.1.1 WindowsXP and Hibernate 2.1 app to JBoss 4.x and Log4j? Rob Mitchell Java 0 01-25-2006 11:01 PM
maven tapestry xdoclet jboss hibernate aspectj tmaus Java 0 10-08-2004 07:52 AM



Advertisments