-->
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: Foreign keys by DelegatingReverseEngineeringStrategy
PostPosted: Wed Nov 21, 2012 10:03 pm 
Newbie

Joined: Wed Nov 21, 2012 9:32 pm
Posts: 2
Hi,
I would like to add foreign keys using DelegatingReverseEngineeringStrategy overrides.
Please help how to do that.

I'm using Postgres db and I want to generate foreign keys fror VIEWS.
All the views have instead of triggers to modify the orig tables.
All the view has id field for primary key
@SuppressWarnings("rawtypes")
@Override
public List getPrimaryKeyColumnNames(TableIdentifier identifier) {
return new ArrayList<String>(Arrays.asList("id"));
}

I need only a simle sample to add FK to view.

Thank You


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.