private void configureUser(Configuration configuration) {
ObjectClass userConfiguration = configuration.objectClass(UserImpl.class);
userConfiguration.callConstructor(true);
userConfiguration.objectField("subscriptions").cascadeOnActivate(true);
userConfiguration.objectField("subscriptions").cascadeOnDelete(true);
userConfiguration.objectField("subscriptions").cascadeOnUpdate(true);
}
private void configureFeedSubscription(Configuration configuration) {
ObjectClass feedConfiguration = configuration.objectClass(FeedSubscriptionImpl.class);
feedConfiguration.callConstructor(true);