{"action":"closed","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2515","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2515/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2515/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2515/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/2515","id":123465104,"number":2515,"title":"Creating an entity called Document when using mongodb leads to broken Application","user":{"login":"The-Crocop","id":7551568,"avatar_url":"https://avatars.githubusercontent.com/u/7551568?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Crocop","html_url":"https://github.com/The-Crocop","followers_url":"https://api.github.com/users/The-Crocop/followers","following_url":"https://api.github.com/users/The-Crocop/following{/other_user}","gists_url":"https://api.github.com/users/The-Crocop/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Crocop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Crocop/subscriptions","organizations_url":"https://api.github.com/users/The-Crocop/orgs","repos_url":"https://api.github.com/users/The-Crocop/repos","events_url":"https://api.github.com/users/The-Crocop/events{/privacy}","received_events_url":"https://api.github.com/users/The-Crocop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-22T11:33:58Z","updated_at":"2015-12-25T21:22:45Z","closed_at":"2015-12-25T21:22:45Z","body":"Basically the Problem is this. When you create an Entity called Document and use MongoDB at the same time the keyword Document is used twice in the same java file once like\r\nimport org.springframework.data.mongodb.core.mapping.Document;\r\nand once for the class. which makes it not working. It shouldnt be allowed to create an entity called document in the first place and there should be a message with an error\r\nBasically the error is: Document is already defined in this compilation unit\r\n\r\n"}}