{"action":"closed","issue":{"url":"https://api.github.com/repos/helun/Ektorp/issues/228","labels_url":"https://api.github.com/repos/helun/Ektorp/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/helun/Ektorp/issues/228/comments","events_url":"https://api.github.com/repos/helun/Ektorp/issues/228/events","html_url":"https://github.com/helun/Ektorp/issues/228","id":58308040,"number":228,"title":"No CouchDbRepositorySupport constructor providing design doc name without creating database","user":{"login":"barrywark","id":145984,"avatar_url":"https://avatars.githubusercontent.com/u/145984?v=3","gravatar_id":"","url":"https://api.github.com/users/barrywark","html_url":"https://github.com/barrywark","followers_url":"https://api.github.com/users/barrywark/followers","following_url":"https://api.github.com/users/barrywark/following{/other_user}","gists_url":"https://api.github.com/users/barrywark/gists{/gist_id}","starred_url":"https://api.github.com/users/barrywark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrywark/subscriptions","organizations_url":"https://api.github.com/users/barrywark/orgs","repos_url":"https://api.github.com/users/barrywark/repos","events_url":"https://api.github.com/users/barrywark/events{/privacy}","received_events_url":"https://api.github.com/users/barrywark/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T04:04:32Z","updated_at":"2015-02-23T08:01:04Z","closed_at":"2015-02-23T08:01:04Z","body":"There is no CouchDbRepositorySupport constructor that allows specification of the design document name and whether to create a database if it doesn't exist. \r\n\r\nThe two constructors:\r\n\r\n```\r\n\tprotected CouchDbRepositorySupport(Class<T> type, CouchDbConnector db, boolean createIfNotExists) {\r\n\t\tAssert.notNull(db, \"CouchDbConnector may not be null\");\r\n\t\tAssert.notNull(type);\r\n\t\tthis.db = db;\r\n\t\tthis.type = type;\r\n\t\tif (createIfNotExists) {\r\n\t\t\tdb.createDatabaseIfNotExists();\r\n\t\t}\r\n\t\tstdDesignDocumentId = NameConventions.designDocName(type);\r\n\t}\r\n\t/**\r\n\t * Alternative constructor allowing a custom design document name (not linked to the type class name)\r\n\t * @param type\r\n\t * @param db\r\n\t * @param designDocName\r\n\t */\r\n\tprotected CouchDbRepositorySupport(Class<T> type, CouchDbConnector db, String designDocName) {\r\n\t\tAssert.notNull(db, \"CouchDbConnector may not be null\");\r\n\t\tAssert.notNull(type);\r\n\t\tthis.db = db;\r\n\t\tthis.type = type;\r\n\t\tdb.createDatabaseIfNotExists();\r\n\t\tstdDesignDocumentId = NameConventions.designDocName(designDocName);\r\n\t}\r\n```\r\n\r\nIt seems there should also be a `CouchDbRepositorySupport(Class<T> type, CouchDbConnector db, String designDocName, boolean createIfNotExists)` override.\r\n\r\nIf there's no objection to this change, I will submit a PR. "}}