rsmith wrote:
> 
> As far as the UUID attribute, I guess what I really want to do is get rid
> of the natural key altogether and just use the surrogate key for this
> particular table.
> I tried overriding the modifyUuid extension to not generate the UUID
> attribute at all via:
> modifyUuid(DomainObject domainObject) :
>     null; 
> 
> But the UUID attribute was still generated for some reason.  For now I'm
> keeping a natural key in this table although I don't really need it.
> 

Strange. As far as I can see it should not be generated if you skipped it in
the transformation. I have changed things in this area recently to support
multi levels of subclasses. Are you using latest trunk?


rsmith wrote:
> 
> 
> I ran into something else which I want to check whether is a bug or
> working as intended...  I have a persistent entity class A which has a
> collection of non-persistent value objects B.  Class B has a reference to
> Class C, which IS persistent.
> The hibernate mapping and table for B are not generated (good), but the
> hibernate mapping for class A has a reference to class B, which causes an
> error because class B isn't a persistent entity.
> I didn't see a way to specify the reference from A to B should be
> non-persistent.  Am I missing something?
> Ex:
> Entity A {
>                       - Set<@B> bs
> }
> 
> ValueObject B {
>               not persistent
>               
>               - @C c
> }
> 
> Entity C {
> }
> 
> 

Good observation. It is a bug. I have fixed it in trunk. I will add a jira
for the record also, but right now the server is down.

/Patrik
-- 
View this message in context: 
http://www.nabble.com/-Sculptor--how-to-control-surrogate-key-name-tp18625411s17564p19239728.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to