-->
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: Mysql problem with reverse engineering...
PostPosted: Thu Oct 27, 2005 7:56 am 
Beginner
Beginner

Joined: Sun Oct 16, 2005 12:37 pm
Posts: 47
Location: Romania, Galati
When I did reverse engineering for mysql database v 4.1.7 in window for choosing tables after refresh put all tables as nodes of schema Merp

I included all tables and in the right panel in column schema apear .*
and in column catalog appear Merp.

When I create session all is okie, in HQL scratchpad all is okie (auto-complite and so are okie, even hql queries), but when I run application with the same config file and mapping files and with all pojo generated from reversing tool and with same mysql version of jdbc driver the following thig happend

merp.tableName is merp.merp_tableName.

Note that in config file there is no default_schema
but in mapping files exists catalog = 'merp'

When i removed from mapping catalog attribute all is fine.

So, Why merp schema is transformed in catalog schema even in window of choosing tables, and of course in mapping file after generated code and resource files.

When I tried to remove merp from column catalog in window mentioned above the reversing didn't work....


Thx.




Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


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.