@Override
 protected void configure(Configuration config) throws Exception {
   config.objectClass(Holder.class).cascadeOnUpdate(true);
   config.objectClass(Holder.class).cascadeOnDelete(true);
 }
Ejemplo n.º 2
0
 protected void configure(Configuration config) throws Exception {
   config.objectClass(Item.class).objectField(FIELD_NAME).indexed(true);
 }