Hi all,
I'm using GAE v1.3.4 with DataNucleus v1.1.5. I am trying to persist a
simple entity with embedded property. My test ran without any thrown
exception and the entity was persisted, but the embedded property
didn't seem to be persisted together with the entity. Below is an
excerpt of the code:
@Entity
@Table(name = "PRODUCT")
public class Product {
...
/** The product dimensions **/
@Embedded
protected ProductDimension dimension = new ProductDimension();
...
}
@Embeddable
public class ProductDimension {
...
@Column(name = "WIDTH")
protected BigDecimal width;
@Column(name = "HEIGHT")
protected BigDecimal height;
@Column(name = "DEPTH")
protected BigDecimal depth;
...
}
The dimension property was injected with a new ProductDimension object
(with some values) to the product entity before persisting.
The persisted entity retrieved from the datastore had every other
local properties but the the embedded dimension properties. There was
a ProductDimension object, but its associated properties (width,
height, depth) were all null.
I'm not sure if I am missing something here. Any suggestion is greatly
appreciated.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.