-->
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.  [ 7 posts ] 
Author Message
 Post subject: Wrong generation if table element contains attribute[solved]
PostPosted: Thu Nov 09, 2006 1:16 pm 
Newbie

Joined: Thu Feb 02, 2006 7:20 am
Posts: 11
Hello to everyone

This is my environment.
Eclipse Version: 3.2.0
Hibernate version: 3.2.0 beta8
Oracle 9i:


I tried to add in my hibernate reverse engineering file in the tag table the attribute schema and after that modification hibernate tools ignores that element. This means there will be used the default generation progress for that element.

this is my table-tag:

Code:
  <table name="AA_ATECO" class="it.bz.prov.egov.gca.anagraficaartigiani.ent.pom.plc.AtecoArtigianiPLC" schema="ANAGRAFICAARTIGIANI">
    <column name="UUID" property="id" />
    <column name="DESCR_D" property="descrD" />
    <column name="DESCR_I" property="descrI" />
    <column name="UUID_ATECO_AU" property="idAtecoAnagrafeUnificata" />
  </table>


When I remove the attribute schema, the code generation works fine again.

Any idea or it is a bug in HT?

regards Markus


Last edited by markusin on Tue Nov 14, 2006 6:28 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 09, 2006 6:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
any chance you default schema set to that schema name ? ..then don't ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: default schema NOT set
PostPosted: Fri Nov 10, 2006 5:03 am 
Newbie

Joined: Thu Feb 02, 2006 7:20 am
Posts: 11
In the reverse engineering file I did not specify any default schema?
if you want I can post my complete reveng file.

Markus


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 5:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
default schema is specified in your cfg.xml or hibernate.properties.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 6:05 am 
Newbie

Joined: Thu Feb 02, 2006 7:20 am
Posts: 11
max wrote:
default schema is specified in your cfg.xml or hibernate.properties.


I am using only cfg.xml as configurlation and there I removed the default schema tag.
As result I get the same wrong generation.

Markus


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 9:32 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
show me what you call "wrong generation"

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: It works now
PostPosted: Tue Nov 14, 2006 6:27 am 
Newbie

Joined: Thu Feb 02, 2006 7:20 am
Posts: 11
Ok.

The generation works correctly now.
I removed in the cfg.xml file the default schema. Then I tested one item with specifieng the schema, but in the other item I forgot to set it. So the specified item was generated correctly but the other one wasn't generated correctly.
In fact it was my fault.

Sorry and thanks for your help


Markus


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