Hi Chad,

So easy I didn't even thought about it aside of the relationship context.
As I get you online, I'm testing FinderMethods with entity parameters,
I use the setEntity method of the Query interface.
I did this minor change below in the HibernateEntityFactory.vsl template
and it seems to work but need more testing. I know there is an opened
issue about query parameters but this might be of interest for related entities.


Replaced the last foreach loop by this one :
#foreach($argument in $finder.arguments)
#set ($argType = $argument.type)
#if ($argType.stereotypeNames.contains("Entity"))
#set ($index = $velocityCount - 1)
 query.setEntity(${index}, ${argument.name});
#else
#set ($index = $velocityCount - 1)
 query.${argument.queryArgumentNameSetter}(${index}, ${argument.name});
#end
#end

Many thanks again,
Fred.

----- Original Message ----- From: "Chad Brandon" <[EMAIL PROTECTED]>
To: "'Frederic Chapuis'" <[EMAIL PROTECTED]>; "'AndroMDA Devels List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 2004 4:09 PM
Subject: RE: [Andromda-devel] Hibernate: non primitive datatypes (String, Date...) are not nullable



Hey Fred,

If you specify your multiplicity of attributes as 0..1 they will be
generated as not null.

Chad

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Frederic
Chapuis
Sent: Wednesday, December 01, 2004 5:08 PM
To: AndroMDA Devels List
Subject: [Andromda-devel] Hibernate: non primitive datatypes (String,
Date...) are not nullable

Hi,

Is there a way to avoid having non primitive datatype members of entities
generated as NOT NULL ?
Maybe a boolean tagged-value @andromda.persistence.column.nullable could be
used when needed.


Fred.




------------------------------------------------------- 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://productguide.itmanagersjournal.com/ _______________________________________________ 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://productguide.itmanagersjournal.com/
_______________________________________________
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://productguide.itmanagersjournal.com/
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to