HI, guys!
I have a need to produce mappings of entities to DB tables (QRM
extension). I visit entity descriptors like so:
app.visitDescriptor( new DescriptorVisitor()
{
public void visit( EntityDescriptor entityDescriptor )
{
for( Class mixinClazz : entityDescriptor.mixinTypes() )
{
if( types.contains( mixinClazz ) )
{
mappings.put( mixinClazz, createMapping(
entityDescriptor, mixinClazz ) );
classId.put( mixinClazz, new Long( 0 ) );
}
}
}
} );
(types is a list of mapped classes specified by the user).
But the org.qi4j.spi.entity.EntityDescriptor is a bit confusing me as it has:
EntityStateDescriptor state();
EntityType entityType();
Both ESD and ET contain description of the shape of the entity
(properties and associations). What is the difference between the two
? Which one should I use ? and why ?
Thanks,
Alex.
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev