{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1764","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1764/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1764/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1764/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1764","id":97081523,"number":1764,"title":"@Version for jpa entities","user":{"login":"krishnakumarp","id":1849485,"avatar_url":"https://avatars.githubusercontent.com/u/1849485?v=3","gravatar_id":"","url":"https://api.github.com/users/krishnakumarp","html_url":"https://github.com/krishnakumarp","followers_url":"https://api.github.com/users/krishnakumarp/followers","following_url":"https://api.github.com/users/krishnakumarp/following{/other_user}","gists_url":"https://api.github.com/users/krishnakumarp/gists{/gist_id}","starred_url":"https://api.github.com/users/krishnakumarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishnakumarp/subscriptions","organizations_url":"https://api.github.com/users/krishnakumarp/orgs","repos_url":"https://api.github.com/users/krishnakumarp/repos","events_url":"https://api.github.com/users/krishnakumarp/events{/privacy}","received_events_url":"https://api.github.com/users/krishnakumarp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-24T15:51:38Z","updated_at":"2015-07-31T17:03:35Z","closed_at":"2015-07-31T17:03:35Z","body":"Currently the jpa entities generated using JHipster does not contain @version annotation. This is very commonly used for optimistic locking. \r\n\r\nPlease add @Version field to jpa entities optionally.\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/126752925","html_url":"https://github.com/jhipster/generator-jhipster/issues/1764#issuecomment-126752925","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1764","id":126752925,"user":{"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},"created_at":"2015-07-31T17:03:35Z","updated_at":"2015-07-31T17:03:35Z","body":"This happens mostly if you have some long-running Hibernate sessions -> this is exactly why I was using it, as I was using Spring Webflow with them.\r\n\r\nOtherwise, it kinds of depends on your business case, and I wouldn't use them by default.\r\n\r\nBesides, for each technology we use its default configuration, and:\r\n\r\n- only override it if there is a serious issue for us (for example, because of our AngularJS UI), and here it is not the case.\r\n- or had it as an option if we provide some significant added value, which is also not the case here (it's really easy to add this manually)"}}