{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2075","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2075/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2075/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2075/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/2075","id":109561861,"number":2075,"title":"All data is being deleted on restart","user":{"login":"alchemistgo87","id":1254443,"avatar_url":"https://avatars.githubusercontent.com/u/1254443?v=3","gravatar_id":"","url":"https://api.github.com/users/alchemistgo87","html_url":"https://github.com/alchemistgo87","followers_url":"https://api.github.com/users/alchemistgo87/followers","following_url":"https://api.github.com/users/alchemistgo87/following{/other_user}","gists_url":"https://api.github.com/users/alchemistgo87/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemistgo87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemistgo87/subscriptions","organizations_url":"https://api.github.com/users/alchemistgo87/orgs","repos_url":"https://api.github.com/users/alchemistgo87/repos","events_url":"https://api.github.com/users/alchemistgo87/events{/privacy}","received_events_url":"https://api.github.com/users/alchemistgo87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/61","html_url":"https://github.com/jhipster/generator-jhipster/milestones/2.22.0","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/61/labels","id":1340481,"number":61,"title":"2.22.0","description":"","creator":{"login":"jdubois","id":316835,"avatar_url":"https://avatars.githubusercontent.com/u/316835?v=3","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":47,"state":"closed","created_at":"2015-10-06T14:56:15Z","updated_at":"2015-10-06T14:56:48Z","due_on":null,"closed_at":"2015-10-06T14:56:48Z"},"comments":2,"created_at":"2015-10-02T19:58:53Z","updated_at":"2015-10-08T21:58:14Z","closed_at":"2015-10-03T02:54:48Z","body":"I have generated my jhipster app with mongodb database. There is a strange problem I am facing. When I restart my app, all the data inside mongodb database is deleted.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/146698073","html_url":"https://github.com/jhipster/generator-jhipster/issues/2075#issuecomment-146698073","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2075","id":146698073,"user":{"login":"vasuneeli1","id":14928641,"avatar_url":"https://avatars.githubusercontent.com/u/14928641?v=3","gravatar_id":"","url":"https://api.github.com/users/vasuneeli1","html_url":"https://github.com/vasuneeli1","followers_url":"https://api.github.com/users/vasuneeli1/followers","following_url":"https://api.github.com/users/vasuneeli1/following{/other_user}","gists_url":"https://api.github.com/users/vasuneeli1/gists{/gist_id}","starred_url":"https://api.github.com/users/vasuneeli1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasuneeli1/subscriptions","organizations_url":"https://api.github.com/users/vasuneeli1/orgs","repos_url":"https://api.github.com/users/vasuneeli1/repos","events_url":"https://api.github.com/users/vasuneeli1/events{/privacy}","received_events_url":"https://api.github.com/users/vasuneeli1/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T21:58:14Z","updated_at":"2015-10-08T21:58:14Z","body":"I faced the same problem with eclipse Kepler, Java 1.7. \r\n\r\nI downloaded the Jhipster 2 days ago. So I had the latest version. Not sure how to check the JHipster current version though.\r\n\r\nI ran the application from eclipse and selected run as Spring boot application. Application was starting without any errors and it functions. But when i restart the server, no data exists.\r\n\r\nI couldn't figure out which mongo db it is using, because my application was working even without starting mongo DB.\r\n\r\nAfter struggling for one and half day, I read the instructions again and ran the command from command line.\r\nmvn spring-boot:run\r\n\r\nfrom this document. http://jhipster.github.io/installation.html\r\n\r\nNow i see errors and had to start my mongodb manually and see a new connection opened. And created database and all collections.\r\n\r\nFrom web, i found out that it works well with spring tool suite, i downloaded the latest version and ran the same main class and selected run as Spring boot application.\r\n\r\nIt opened a new connection and working fine. Able to see the data after restarts too.\r\n\r\nI am not sure whether it is an issue with a particular version of Eclipse or the combination caused it.\r\n\r\nThanks.\r\nSatya\r\n\r\n\r\n "}}