Source:
<code>private static void addEntitysToSchema(Schema schema) { Entity folder = schema.addEntity("Folder"); folder.addStringProperty("label").notNull(); Entity feed = schema.addEntity("Feed"); <START> Property folderIdProperty = feed.addLongProperty("folderId").index().getProperty(); <END> feed.addStringProperty("feedTitle").notNull(); feed.addStringProperty("faviconUrl"); feed.addStringProperty("link"); feed.addStringProperty("avgColour"); Entity rssItem = schema.addEntity("RssItem"); Property rssItemFeedId = rssItem.addLongProperty("feedId").notNull().index().getProperty(); rssItem.addStringProperty("link"); rssItem.addStringProperty("title"); rssItem.addStringProperty("body"); rssItem.addBooleanProperty("read"); rssItem.addBooleanProperty("starred"); rssItem.addStringProperty("author").notNull(); rssItem.addStringProperty("guid").notNull(); rssItem.addStringProperty("guidHash").notNull(); rssItem.addBooleanProperty("read_temp"); rssItem.addBooleanProperty("starred_temp"); rssItem.addDateProperty("lastModified"); rssItem.addDateProperty("pubDate"); rssItem.addStringProperty("enclosureLink"); rssItem.addStringProperty("enclosureMime"); feed.addToOne(folder, folderIdProperty); folder.addToMany(feed, folderIdProperty); feed.addToMany(rssItem, rssItemFeedId); rssItem.addToOne(feed, rssItemFeedId); Entity rssItemView = schema.addEntity("CurrentRssItemView"); rssItemView.addIdProperty().notNull(); rssItemView.addLongProperty("rssItemId").notNull(); rssItem.implementsInterface("HasId<Long>"); }</code><technical_language>need id properties in database. remove them</technical_language>

Target:
private static void addEntitysToSchema(Schema schema) { Entity folder = schema.addEntity("Folder"); Property folderId = folder.addIdProperty().notNull().getProperty(); folder.addStringProperty("label").notNull(); Entity feed = schema.addEntity("Feed"); Property feedId = feed.addIdProperty().notNull().getProperty(); Property folderIdProperty = feed.addLongProperty("folderId").index().getProperty(); feed.addStringProperty("feedTitle").notNull(); feed.addStringProperty("faviconUrl"); feed.addStringProperty("link"); feed.addStringProperty("avgColour"); Entity rssItem = schema.addEntity("RssItem"); Property rssItemId = rssItem.addIdProperty().notNull().getProperty(); Property rssItemFeedId = rssItem.addLongProperty("feedId").notNull().index().getProperty(); rssItem.addStringProperty("link"); rssItem.addStringProperty("title"); rssItem.addStringProperty("body"); rssItem.addBooleanProperty("read"); rssItem.addBooleanProperty("starred"); rssItem.addStringProperty("author").notNull(); rssItem.addStringProperty("guid").notNull(); rssItem.addStringProperty("guidHash").notNull(); rssItem.addBooleanProperty("read_temp"); rssItem.addBooleanProperty("starred_temp"); rssItem.addDateProperty("lastModified"); rssItem.addDateProperty("pubDate"); rssItem.addStringProperty("enclosureLink"); rssItem.addStringProperty("enclosureMime"); feed.addToOne(folder, folderIdProperty); folder.addToMany(feed, folderIdProperty); feed.addToMany(rssItem, rssItemFeedId); rssItem.addToOne(feed, rssItemFeedId); Entity rssItemView = schema.addEntity("CurrentRssItemView"); rssItemView.addIdProperty().notNull(); rssItemView.addLongProperty("rssItemId").notNull(); rssItem.implementsInterface("HasId<Long>"); }