-->
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: [Hibernate Tools] reveng file's support for cascades
PostPosted: Thu Nov 12, 2009 12:40 pm 
Newbie

Joined: Fri Mar 16, 2007 6:50 am
Posts: 9
Location: Paris, France
Hello,

I was looking for a way to have support for cascades through Hibernate Tools' reverse engineering and saw this JIRA thread "Add ability in reverse engineering config file to support cascades":

http://opensource.atlassian.com/project ... se/HBX-623

which fits my need and indicates "Fix Version/s: 3.2.4.GA"... fine.

But I just got Hibernate Tools 3.2.4.GA from http://repository.jboss.org/maven2/org/ ... /3.2.4.GA/, and this patch's content is not included... neither in the 3.2.5.Beta I just got from the SVN repository.

So, where did this patch go?

http://opensource.atlassian.com/project ... sion/10875 claims yet that HBX-623 is included in 3.2.4.GA.

Any information on this subject would be really appreciated... thank you.


Top
 Profile  
 
 Post subject: Re: [Hibernate Tools] reveng file's support for cascades
PostPosted: Tue Nov 17, 2009 12:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I dont know what that hibernate tools jar is on the maven repo - we don't push the releases there (currently).

It is definitely included in the hibernate tools we release from hibernate.org and jboss.org/tools.

What is not working for you ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: [Hibernate Tools] reveng file's support for cascades
PostPosted: Mon Nov 23, 2009 1:15 pm 
Newbie

Joined: Fri Mar 16, 2007 6:50 am
Posts: 9
Location: Paris, France
Hello Max,

If I look at HBX-623, the diff file shows that hibernate-reverse-engineering-3.0.dtd has been modified in the following way:

@@ -97,8 +97,12 @@
<!ELEMENT many-to-one EMPTY >
<!ATTLIST many-to-one property CDATA #IMPLIED>
<!ATTLIST many-to-one exclude (true|false) #IMPLIED>
+<!ATTLIST many-to-one cascade (persist|merge|delete|save-update|evict|replicate|lock|refresh|delete-orphan|all) #IMPLIED>
+<!ATTLIST many-to-one fetch (select|join) #IMPLIED>
+<!ATTLIST many-to-one insert (true|false) #IMPLIED>
+<!ATTLIST many-to-one update (true|false) #IMPLIED>
+<!ATTLIST many-to-one lazy (true|false) #IMPLIED>


I then got both HibernateTools-3.2.4.GA-R200905070146-H18 from hibernate.org and HibernateTools-3.3.0.v200910281724M-H247-M4 from jboss.org/tools.

In each of them I opened \plugins\org.hibernate.eclipse_<version>\lib\tools\hibernate-tools.jar
and looked at this very element in the DTD:

<!ELEMENT many-to-one EMPTY >
<!ATTLIST many-to-one property CDATA #IMPLIED>
<!ATTLIST many-to-one exclude (true|false) #IMPLIED>
<!ATTLIST many-to-one cascade CDATA #IMPLIED>
<!ATTLIST many-to-one fetch (join|select) #IMPLIED>
<!ATTLIST many-to-one update (true|false) "true">
<!ATTLIST many-to-one insert (true|false) "true">

So the 'lazy' attribute is missing, and 'cascade' values are not defined.
Using the 'cascade' property like in the following does not generate any @Cascade tag on the resulting Java classes.

<table schema="a" name="t1">
<foreign-key constraint-name="fk1" foreign-table="t2">
<column-ref local-column="ID_t1" foreign-column="ID_t2" />
<many-to-one cascade="all" />
</foreign-key>
</table>

Same applies to JDBCBinder class for example, for which changes described in HBX-623 are missing in the released jar.

If HBX-623 is included in these releases, I just don't get what is going on...


Top
 Profile  
 
 Post subject: Re: [Hibernate Tools] reveng file's support for cascades
PostPosted: Sun Dec 13, 2009 11:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm, not sure what happend. looks like the .jar in hibernate tools for eclipse is not correct. Ill look into it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: [Hibernate Tools] reveng file's support for cascades
PostPosted: Mon Mar 15, 2010 2:08 pm 
Newbie

Joined: Fri Mar 16, 2007 6:50 am
Posts: 9
Location: Paris, France
So, did you have time to look into it?

I can see Hibernate Tools had no new release for about a year, how can I get this patch though?


Top
 Profile  
 
 Post subject: Re: [Hibernate Tools] reveng file's support for cascades
PostPosted: Wed Mar 24, 2010 10:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
We released about 8 times last year as part of JBoss tools. You can get it from there.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: [Hibernate Tools] reveng file's support for cascades
PostPosted: Tue Jan 18, 2011 4:23 pm 
Newbie

Joined: Tue Jan 18, 2011 3:31 pm
Posts: 4
Hi
Please see related post, the DTD is still not up to date and I am still not able to reverse engineer with the cascade attribute.

-> related post

Please assist.


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.