HI all,
Two week working trying to do it, i still very satisfied with castor, but i think it have some bug, or things unfinished.
I take care, that castor make a mistake when there are one-to-many relations, or maybe i'm doing something wrong ;-)
As we can see in the castors example Product---->ProductDetail, when a product detail is added to a product, the product detail is inserted in the details vector of the product class, and the productDetails refrence of product is updated. This is the code, more understandable:
public void addDetail( ProductDetail detail )
{
_details.add( detail );
detail.setProduct( this );
}
Castor SG don't do the last line.
Does anybody know what do i need to change in the CollectionInfoXX class, to get a reference to the class???
The only i need is get the class name, in the example "Product", but i can't find a reference on it in this class.
Something like that:
jsc.add( getContentType().createToJavaObjectCode(getContentName())+".set"+"THE CLASSNAME"+"(this);");
Thank you very much, Enrique.
