Hi,

Where can I set which inheritance strategy should be used when I generate my 
spring modell?

I have a Partner which inherits from the User.

Currently all of the attributes are "stuffed" into 1 table.
I would need to tables for this one for the user and one for the partner!

Is that possible?

Many thanks!
Regards,
attila

-----Eredeti üzenet-----
Feladó: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Meghatalmazó [EMAIL 
PROTECTED]
Küldve: 2005. február 16. 5:01
Címzett: andromda-user@lists.sourceforge.net
Tárgy: Andromda-user digest, Vol 1 #1008 - 1 msg

Send Andromda-user mailing list submissions to
        andromda-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/andromda-user
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Andromda-user digest..."


Today's Topics:

   1. Re: hibernate lazy-loading bottleneck (Bernard Sirius)

--__--__--

Message: 1
Date: Tue, 15 Feb 2005 18:35:45 -0800 (PST)
From: Bernard Sirius <[EMAIL PROTECTED]>
Subject: Re: [Andromda-user] hibernate lazy-loading bottleneck
To: andromda-user@lists.sourceforge.net

OK, well... it seems to be fixed.

Chad asked me to send him my project, which, to save
our precious trade secrets, I couldn't reasonably
afford to do. So I decided to make a new test project
from scratch... and it worked!

I've then replaced the mock model by the genuine,
original one... and it worked!

I'll never know what went wrong, I guess.

Not very XP, but I noticed that the
rewrite-everything-from-scratch method worked an
embarassing number of times for me...

bernard

--- Bernard Sirius <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> This isn't directly an AndroMDA issue, but a
> hibernate/spring one. I'm so glad to let AndroMDA
> address all the complexity of my models, but in the
> end I'm completely stuck with horribly mundane
> considerations.
> 
> And after all, if AndroMDA were perfect I wouldn't
> have to care about all this ;-)
> 
> During a mail exchange with Chad yesterday, I
> figured
> out that a problem I was having with my business
> logic
> actually boiled down to the fact that I couldn't
> lazily load collections as I should (i.e. I'm doing
> a
> very commonplace user.getGroups() in my DAO and that
> raises a
> net.sf.hibernate.LazyInitializationException).
> 
> I cannot understand where I have been wrong, and
> hence
> (as Chad suggested) I have posted a message at the
> springframework's forum. Here it is:
> 
>
http://forum.springframework.org/viewtopic.php?t=3539
> 
> I haven't got any answers yet, and this issue got me
> completely blocked in my development.
> 
> I have found that many have had problems with this,
> the most complete post on the subject being:
> 
> http://www.jroller.org/page/kbaum/20040708
> 
> ...but it says nothing that I'm not aware of. Except
> for one thing: well, my problem occurs when in the
> web
> layer I call the business layer (Service) which in
> turn calls the DAO.
> 
> Then I have tried to tackle the problem in a simple
> test case. Here the author of the said post has a
> point, and accordingly wrote an abstract TestCase
> class to allow for lazy collection loading in test
> cases. But this confuses me, as in this class' setUp
> method, a session is created and "saved" in a
> special
> spring object (SessionHolder)...
> 
> but how's this session "used" afterwards. Isn't all
> this controlled by spring's application context???
> 
> confused, really, and frustrated :-(
> 
> Sorry again for being slightly off-topic here. Help
> really, really appreciated!
> 
> bernard
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Easier than ever with enhanced search.
> Learn more.
> http://info.mail.yahoo.com/mail_250
> 
> 
>
-------------------------------------------------------
> 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-user mailing list
> Andromda-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/andromda-user
> 



                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 



--__--__--

_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user


End of Andromda-user Digest


-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to