@Retention(value=RUNTIME) @Documented @Target(value=TYPE) public @interface Entity
@Entity is a marker annotation to tell Acid House that the annotated
class is an entity class to be managed by Acid House.
Entity is a POJO (Plain Old Java Object), and can represent a
hierarchical structure (not relationship) as the ownership of member objects.
The hierarchy is appropriately mapped to the datastore-specific data model by
ResourceManager implementation, like this:
@Entitypublic class Entity3 {@KeyString id; int i; Entity1 entity1; List<Entity2> entity2s; }@Entitypublic class Entity1 {@KeyString id; int i; }@Entitypublic class Entity2 {@KeyString id; List<Integer> integers; }
Copyright © 2009-2014 Eiichiro Uchiumi. All Rights Reserved.