-->
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.  [ 2 posts ] 
Author Message
 Post subject: Can't get code generation working
PostPosted: Tue Apr 29, 2008 5:59 pm 
Newbie

Joined: Tue Apr 29, 2008 5:49 pm
Posts: 3
I really don't get the code generation working.

The hibernate console is working. I can see the tables of my database.
I've created the reveng.xml with the code generation wizard.
I've set export rules (Domain, HBM,DAO, cfg.xml).
I've set the target directory and a target package.

But when I run the code generation, only 1 file is generated: the cfg.xml.

What do I do wrong?

PS: The tables are empty at the moment. But the DAOs should be generated anyhow.

This are my files:

Code:
<?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">org.gjt.mm.mysql.Driver</property>
        <property name="hibernate.connection.password">meinPasswort</property>
        <property name="hibernate.connection.url">jdbc:mysql://127.0.0.1/knetpersistence</property>
        <property name="hibernate.connection.username">User</property>
        <property name="hibernate.default_schema">knetpersistence</property>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
    </session-factory>
</hibernate-configuration>

Code:
<?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-catalog="knetpersistence" match-schema="knetpersistence" match-name="t_con_infobundle_keyword" exclude="true"/>
  <table-filter match-schema="knetpersistence" match-name=".*"/>
</hibernate-reverse-engineering>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 3:21 am 
Newbie

Joined: Tue Apr 29, 2008 5:49 pm
Posts: 3
Have I made a conceptual fault - something primitive?

I've created a console and a cfg file. The console connected successfuly to the DB (MySQL 5). Then I opened the code generation wizard. Put my console there, specified my target dir and created a reveng.xml file. I had choosen all tables to be exported.

Have I forgot something?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.