-->
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.  [ 13 posts ] 
Author Message
 Post subject: Middlegen/Hibernate plugin not generating hbm for views
PostPosted: Fri Aug 27, 2004 6:23 pm 
Newbie

Joined: Sun Jun 20, 2004 3:06 pm
Posts: 5
Using
middlegen-2.0-vo.jar
middlegen-hibernate-plugin-2.0-vo.jar
postgresql 7.4.3

ant -151

I ran middlegen with hibernate plugin to genereate hbm files for table and views. It generated the files for tables however it skipped all the views.

How do I genereate hbm files for the views.

Thanks
Kumar


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 27, 2004 7:55 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I try one view and middlegen do mapping - all properties are in composite id

regards


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 28, 2004 6:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If there is no primary key then it will generate it as a single complete composite key.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 28, 2004 7:17 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
David,
Views have never primary key, but it isn't problem only info

regards


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 29, 2004 4:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Its implied - yes.
As far as Middlegen is concerned it does not treat a View or Table [with no primary key] any differently.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 29, 2004 5:14 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
There is yet one problem with synonyms (oracle)

1 - when synonym is for not table or view (for instance synonym for function, procedure or another synonym)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 29, 2004 7:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Your propably right - there is the one special case for Oracle synonyms - I have not checked this in some time. Obviously, its assuming a Table/view is the target (which may not always be the case).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 3:39 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I can make function for check this and skip when it isn't table/view

regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 4:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Great. Your help is appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 10:41 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I send You patch for this
Pathc resolve problem when synonym and destination view/table have different name

regards


Top
 Profile  
 
 Post subject: the bug fix is it posted somewhere public?
PostPosted: Fri Sep 24, 2004 1:11 pm 
Newbie

Joined: Fri Sep 24, 2004 1:05 pm
Posts: 1
I have also run into the same view issues, and it does not even show up in the middlegen tool, so I was curious does that depend on ways views are created on the Oracle end or some setting that I am not properly doing in middlegen?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 2:59 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I resolve this for me and send patch to David - I don't know ist it released

regards


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 6:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have been reviewing the patch. Should be in CVS this weekend.


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