-->
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.  [ 4 posts ] 
Author Message
 Post subject: Help Reverse Engineering
PostPosted: Wed Jun 02, 2010 11:57 am 
Newbie

Joined: Wed Jun 02, 2010 11:51 am
Posts: 3
Hi, i'm trying to Reverse Engineer an Oracle database, i want to use annotations and need the pojos generated to have the schema property.

@Table(name = "AAR_EMPLEADOS", schema="ACS")

but i can't figure it out how, your help will be apreciated.


Top
 Profile  
 
 Post subject: Re: Help Reverse Engineering
PostPosted: Thu Jun 03, 2010 9:29 am 
Newbie

Joined: Wed Jun 02, 2010 11:51 am
Posts: 3
No luck yet customizing annotations, i've been editing the generated files by hand


Top
 Profile  
 
 Post subject: Re: Help Reverse Engineering
PostPosted: Thu Jun 03, 2010 10:59 am 
Newbie

Joined: Wed Jun 02, 2010 11:51 am
Posts: 3
I've checked using custom templates but it seems that the property clazz.table.schema doesn't exist, where do i set it?

Code:
<#if clazz.table.schema?exists>
    ,schema="${clazz.table.schema}"
</#if>


Top
 Profile  
 
 Post subject: Re: Help Reverse Engineering
PostPosted: Fri Jun 04, 2010 7:11 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if the schema is not there then that is because you have hibernate.default_schema set and thus the schema is not relevant.

if you want it there then unset default_schema and use schema-selection in reveng.xml instead to pick up the tables you want.

_________________
Max
Don't forget to rate


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