Discussion:
[Middlegen-user] Many 2 Many relationships
Brian Cochran
2002-10-14 21:26:02 UTC
Permalink
Hey all,
I may be completely wrong on this, but it seems that the many2many
mappings to xdoclet are backwards for jboss in entity-cmp-20.vm.

They appear as
#set( $thisSideJbossTag = "jboss.relation" )
#set( $otherSideJbossTag = "jboss.target-relation" )
but shouldn't they be

< #set( $thisSideJbossTag = "jboss.target-relation" )
< #set( $otherSideJbossTag = "jboss.relation" )

I did a little testing with the latter and it seems to wind up with the
correct jbosscmp-jdbc.xml
file as well as resolve a huge headache I had been having with many2manys
and deploying. I have no idea about weblogic.

Thanks,
Brian
Aslak Hellesøy
2002-10-14 21:35:04 UTC
Permalink
Hi Brian,

I've filed a bug, since I'm too busy to verify this right now.
http://sourceforge.net/tracker/index.php?func=detail&aid=623291&group_id=360
44&atid=415990

This relation stuff is so darn complex some times (that's why middlegen was
written actually ;-)), so it never shocks me when people find bugs in it.
I'll look into it, but I'm a bit busy these days. If you can dig around some
more and _confirm_ that it is a bug, I'll happily apply a patch.

Aslak
-----Original Message-----
Cochran
Sent: 15. oktober 2002 01:27
Subject: [Middlegen-user] Many 2 Many relationships
Hey all,
I may be completely wrong on this, but it seems that the many2many
mappings to xdoclet are backwards for jboss in entity-cmp-20.vm.
They appear as
#set( $thisSideJbossTag = "jboss.relation" )
#set( $otherSideJbossTag = "jboss.target-relation" )
but shouldn't they be
< #set( $thisSideJbossTag = "jboss.target-relation" )
< #set( $otherSideJbossTag = "jboss.relation" )
I did a little testing with the latter and it seems to wind up with the
correct jbosscmp-jdbc.xml
file as well as resolve a huge headache I had been having with many2manys
and deploying. I have no idea about weblogic.
Thanks,
Brian
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...