-->
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.  [ 3 posts ] 
Author Message
 Post subject: Controlling reverse engineering of tables / views
PostPosted: Wed Aug 20, 2008 12:48 pm 
Newbie

Joined: Thu Mar 20, 2008 6:14 pm
Posts: 3
Location: Berkeley, CA
Hi,
I've been playing with the reverse engineering functionality in Hibernate Tools 3.2 with PostgreSQL 8.3 and seem to be stuck on something that I figured should be relatively trivial...

I have a simple reverse engineering configuration that looks something like this:

Code:
<hibernate-reverse-engineering>
  <table-filter match-name=".*"  match-catalog=".*" match-schema="public">
     <meta attribute="extends">my.class</meta>
  </table-filter>
</hibernate-reverse-engineering>


When I run the code generation task for generating domain code / hibernate mappings, code & mappings are generated for both tables and views in my database. Could someone suggest a configuration parameter that would allow me to simply generate code for the tables and not the views?

If this is functionality is controlled by the match-catalog attribute, then I guess I may have a PostgreSQL question, not a Hibernate Tools Question :)

At any rate, thanks for any suggestions.

-Rob-


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 22, 2008 4:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
currently we don't distinguish between table and views when reverse engineering.

If you views follow a naming pattern you can use something like:

Code:
<table-filter match-name="VIEW_.*"  exclude="true'/>

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 22, 2008 12:06 pm 
Newbie

Joined: Thu Mar 20, 2008 6:14 pm
Posts: 3
Location: Berkeley, CA
Thanks for the info, Max - that would explain it :)


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