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