Do you need something like this, i.e. Moon doesn't refer back to Planet?

Entity Planet {
   - @Set<Moon> moons
}

Entity Moon {
}


This will result in a uni-directional many association, but will be
implemented in the database as many-to-many.

To implement it with an ordinary foreign key in the child table you have to
add inverse

Entity Planet {
   - @Set<Moon> moons inverse
}

Doc:
http://www.fornax-platform.org/cp/display/fornax/3.+Advanced+Tutorial+(CSC)#3.AdvancedTutorial(CSC)-AdditionalReferenceFeatures

/Patrik


polly.c.chang wrote:
> 
> Hi,
> 
> Is it possible to map a uni-directional one-to-many mapping?  From looking
> at the documentation and template code, it looks like one has to mark the
> Reference as "inverse", which is a bi-directional mapping.  I just want to
> have a simple uni-directional mapping.
> 
> Thanks!
> --Polly
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Sculptor--uni-directional-one-to-many-mapping--tp21445883s17564p21451236.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to