-->
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-Tools: Generate Code Error
PostPosted: Mon Feb 12, 2007 12:37 pm 
Newbie

Joined: Tue Jan 16, 2007 10:25 am
Posts: 11
Hello all

I try to use the Hibernate Tools, but I have some problems with it.

I use the Oracle10gXE database and the newest version of Hibernate tools.

Here are my files.


<b>hibernate.cfg.xml:</b>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">test</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:XE</property>
<property name="hibernate.connection.username">AXK</property>
<property name="hibernate.default_schema">AXK</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
</session-factory>
</hibernate-configuration>


<b>hibernate.reveng.xml</b>

<?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>
<schema-selection match-schema="AXK"></schema-selection>
<table-filter match-schema="AXK" match-name=".*"/>
</hibernate-reverse-engineering>


<b>Hibernate Console Configuration</b>
General:
Name: Tools
Project: Hibernate_Tools
Type: Annotations
Property file:
Configuration file: \Hibernate_Tools\hibernate.cfg.xml
Persistence Unit:
Naming strategy:
Entity resolver:

Classpath:
Unter additional classpath:
- ojdbc-Treiber
- /Hibernate Tools

Include default classpath from project: yes

Mapping:
I didn't add anything

<b>Hibernate Code Generation</b>
Main:
Console Configuration: Tools
Output directory: \Hibernate_Tools
Reverse engineer from JDBC Connection: yes
Package:
reveng-xml: \Hibernate_Tools\hibernate.reveng.xml
reveng-strategy:
Generate basic typed composite ids: yes
Detect optimistic lock columns: yes
Detect many-to-many tables:
Use custom-templates: no

Exporters:
Use Java 5 syntax: no
Generate EJB3 annotations: no
Domain Code: yes
Hibernate XML-Mappings: yes
DAO Code: no
Hibernate XML Configuration: yes
Schema Documentation: no
JBOSS Seam: no

Unter Refresh and Common I haven't change anything.

If I would like to generate the Code, I always get the following error:

<b>Console:</b>
2007-02-12 17:37:39,580 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - Exception while trying to get indexinfo on BIN$qzHrar6lT5eylZzQRdhNyQ==$0=Exception while getting index info for AXK.BIN$qzHrar6lT5eylZzQRdhNyQ==$0
2007-02-12 17:37:39,590 WARN Worker-9 org.hibernate.cfg.reveng.JDBCReader - Exception while trying to get indexinfo on BIN$q47H6DCRRGaHcjUXeFy54A==$0=Exception while getting index info for AXK.BIN$q47H6DCRRGaHcjUXeFy54A==$0

Have anybody an Idea? It would be very kind, if somebody could help me.
Thank you very much!


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.