Hmm, looks like I will have to use the wrapper. The other method requires
too much hard coding in advices to skip the generation of Hibernate and DDL
snippets.
Is there a way to use inheritance instead of composition for the wrapper
class? I tried this but it doesn't like the qualified class name after
"extends":
ValueObject UserInformation extends com.foo.common.UserInformation {
!persistent !immutable
}
Also, I see that you've fixed the wiki. I'll look in SVN for the
documentation next time. Thanks! :)
--Polly
Patrik Nordwall wrote:
>
> If it was persistent it would be rather easy to add your own type as
> described in Developer's Guide.
> Now it is not, and then I think the easiest is to wrap it inside a not
> persistent ValueObject like this:
>
> Entity Person {
> - @UserInformationWrapper userInfo
> }
>
> ValueObject UserInformationWrapper {
> not persistent
> com.foo.common.UserInformation value
> }
>
> An alternative is to use it as you suggested. To get rid of the error you
> have to add
> db.mysql.type.com.foo.common.UserInformation=VARCHAR
> in your sculptor-generator.properties
> But then you also have to do some special cases to exclude it from from
> hibernate and ddl generation.
>
> /Patrik
>
> PS. wiki is down, and I don't know why. You have checked out from svn and
> can read documentation in
> /fornax-cartridges-sculptor-parent/doc/AdvancedTutorial.pdf
>
>
>
--
View this message in context:
http://www.nabble.com/-Sculptor--Reference-class-in-jar-tp18119720s17564p18121130.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer