-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 2:32 AM
To: [EMAIL PROTECTED]
Subject: RE: [Andromda-devel] AndroMDA/JIRA Closed: (SPRING-29) Hibernate
eager loading broken?

Hi Chad,

thanks for the prompt reaction - it is really a pleasure to work with you.

BTW, last night I started working on remoting for the Spring cartridge (I
was one of the few people that asked for it). Here is what I have got so
far:

[CB] Nice

- added a tagged value "@andromda.spring.remoting.type" with values [none,
httpinvoker, rmi, hessian, burlap] that can be used to specify the type of
remote communication explicitly for each service. This way you can export
some services and leave other unexported.

- added a namespace property "defaultServiceRemotingType" that makes it
possible to define a default remoting type (makes life easier if you want to
export all but a few services)

- added three namespace properties defaultServiceRemotePort,
defaultServiceRemoteContext, defaultServiceRemoteServer that allow for
configuring where the remote service is running. 

So far so good. Now for a few questions:
a) Is it a good idea to add tagged values "@andromda.remoting.port",
"@andromda.remoting.context", "@andromda.remoting.server" that allow for
individual configuration of each service?

[CB] Hmmm...is it very likely that those values will change between
services, if so I would say have the tagged values, otherwise no.  I try to
avoid more tagged values unless they're really needed.

b) When should I define namespace properties in the
andromda-metafacades.xml, and when in the andromda-cartridge.xml?

[CB] You want the namespace properties in the andromda-metafacades.xml when
you'll access them from within the a metafacade (so basically whenever you
can and it makes sense)...have the properties in the andromda-cartridge.xml
when they are global to the templates and only make sense to called from the
templates.  

c) Which IDE are you using and how do have it set up so that all the Java
files in the various subprojects get pulled in?

[CB] Eclipse, if you open up andromda-all in eclipse you'll see it has the
.classpath and .project file.

I hope to get this stuff ready by the end of the weekend and will send you a
patch. Or would you rather like me to file a JIRA bug?

[CB] Sounds good...how about a JIRA issue, easier to keep track of that way,
if I get it in email I'm bound to lose it or forget about it.

- Peter

>-----Original Message-----
>From: Chad Brandon [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 10, 2005 5:09 PM
>To: FRIESE, PETER
>Cc: [email protected]
>Subject: RE: [Andromda-devel] AndroMDA/JIRA Closed: (SPRING-29)
>Hibernate eager loading broken?
>
>
>It was definitely a bug, which I did fix...should be out there 
>next time CC
>builds.
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, February 10, 2005 9:08 AM
>To: [EMAIL PROTECTED]
>Subject: RE: [Andromda-devel] AndroMDA/JIRA Closed: 
>(SPRING-29) Hibernate
>eager loading broken?
>
>Hi Chad,
>
>was it a bug or a personal mistake of mine?
>
>- Peter
>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] Behalf Of Chad
>>Brandon (JIRA)
>>Sent: Thursday, February 10, 2005 5:01 PM
>>To: [email protected]
>>Subject: [Andromda-devel] AndroMDA/JIRA Closed: (SPRING-29) Hibernate
>>eager loading broken?
>>
>>
>>     [ 
>>http://team.andromda.org:8080/jira/browse/SPRING-29?page=history ]
>>     
>>Chad Brandon closed SPRING-29:
>>------------------------------
>>
>>    Resolution: Fixed
>>
>>> Hibernate eager loading broken?
>>> -------------------------------
>>>
>>>          Key: SPRING-29
>>>          URL: http://team.andromda.org:8080/jira/browse/SPRING-29
>>>      Project: Spring Cartridge
>>>         Type: Bug
>>>     Reporter: Peter Friese
>>>     Assignee: Chad Brandon
>>
>>>
>>>
>>> The spring cartridge doc states that if I model a 
>>composition between two
>>> classes (and set the multiplicty to "1 to many"), this will 
>>result in an eager loading collection in the hibernate mapping 
>>file, like this:
>>> <class name="sample.BookingImpl" table="BOOKING">
>>>   <set name="items" order-by="BOOKING_FK" lazy="false" 
>>outer-join="auto" inverse="true" cascade="delete">
>>>     <key>
>>>       <column name="BOOKING_FK"/>
>>>     </key>
>>>     <one-to-many class="sample.ItemImpl"/>
>>>   </set>
>>> </class>
>>> I tried to apply this to my model, but to no avail. Since I am
>>> not using MagicDraw (but Together Designer with a custom 
>>made XMI export
>>> filter), I first suspected an error in the produced XMI. 
>>After having spent
>>> some time comparing the XMI of Magic and my own XMI, I found 
>>that they are
>>> quite similar. 
>>> So I decided to have a second look at the test model for the 
>>cartridge, which contains quite a
>>> number of compositions - but none of them gets mapped to an 
>>eagerly loading
>>> collection. This is why I suspect a bug in the cartridge.
>>
>>-- 
>>This message is automatically generated by JIRA.
>>-
>>If you think it was sent incorrectly contact one of the 
>administrators:
>>   http://team.andromda.org:8080/jira/secure/Administrators.jspa
>>-
>>If you want more information on JIRA, or have a bug to report see:
>>   http://www.atlassian.com/software/jira
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from 
>>real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Andromda-devel mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/andromda-devel
>>
>
>
>




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to