{"action":"created","issue":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/762","repository_url":"https://api.github.com/repos/Raizlabs/DBFlow","labels_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/762/comments","events_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/762/events","html_url":"https://github.com/Raizlabs/DBFlow/issues/762","id":149978342,"number":762,"title":"Extends class from module","user":{"login":"ihariza","id":7591578,"avatar_url":"https://avatars.githubusercontent.com/u/7591578?v=3","gravatar_id":"","url":"https://api.github.com/users/ihariza","html_url":"https://github.com/ihariza","followers_url":"https://api.github.com/users/ihariza/followers","following_url":"https://api.github.com/users/ihariza/following{/other_user}","gists_url":"https://api.github.com/users/ihariza/gists{/gist_id}","starred_url":"https://api.github.com/users/ihariza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihariza/subscriptions","organizations_url":"https://api.github.com/users/ihariza/orgs","repos_url":"https://api.github.com/users/ihariza/repos","events_url":"https://api.github.com/users/ihariza/events{/privacy}","received_events_url":"https://api.github.com/users/ihariza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T06:20:41Z","updated_at":"2016-04-21T20:11:42Z","closed_at":null,"body":"I have a module that contains database model with dbflow, and I would like to know if it´s possible to extends my module class model from the app.\r\n\r\nmodule app:\r\n```javascript\r\n@Table(database = AppDataBase.class)\r\npublic class User extends BaseModel {\r\n\r\n  @PrimaryKey \r\n   long id;\r\n\r\n  @Column\r\n   String name;\r\n}\r\n```\r\nmy app:\r\n```javascript\r\n@Table(database = MyDbNameGeneratedDatabaseHolder.class)\r\npublic class CustomUser extends User {\r\n\r\n  @Column\r\n   String email;\r\n}\r\n```\r\nI´m trying adding to the module \r\n```javascript\r\napt {\r\n    arguments {\r\n        targetModuleName 'MyDbName'\r\n    }\r\n}\r\n```\r\nand in my app that extends from Application:\r\n```javascript\r\n FlowManager.init(this);\r\n FlowManager.initModule(MyDbNameGeneratedDatabaseHolder.class);\r\n```\r\nbut I get :\r\n  com.raizlabs.android.dbflow.structure.InvalidDBConfiguration: Table: com.myproject.model.entity.User is not registered with a Database. Did you forget the @Table annotation?"},"comment":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/comments/213096321","html_url":"https://github.com/Raizlabs/DBFlow/issues/762#issuecomment-213096321","issue_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/762","id":213096321,"user":{"login":"agrosner","id":2117859,"avatar_url":"https://avatars.githubusercontent.com/u/2117859?v=3","gravatar_id":"","url":"https://api.github.com/users/agrosner","html_url":"https://github.com/agrosner","followers_url":"https://api.github.com/users/agrosner/followers","following_url":"https://api.github.com/users/agrosner/following{/other_user}","gists_url":"https://api.github.com/users/agrosner/gists{/gist_id}","starred_url":"https://api.github.com/users/agrosner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrosner/subscriptions","organizations_url":"https://api.github.com/users/agrosner/orgs","repos_url":"https://api.github.com/users/agrosner/repos","events_url":"https://api.github.com/users/agrosner/events{/privacy}","received_events_url":"https://api.github.com/users/agrosner/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T20:11:42Z","updated_at":"2016-04-21T20:11:42Z","body":"Looks like you placed the:\r\n```java\r\n@Table(database = MyDbNameGeneratedDatabaseHolder.class)\r\npublic class CustomUser extends User {\r\n....\r\n```\r\n\r\npointing to the holder generated, not database."}}