{"action":"created","issue":{"url":"https://api.github.com/repos/javers/javers/issues/142","labels_url":"https://api.github.com/repos/javers/javers/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/javers/javers/issues/142/comments","events_url":"https://api.github.com/repos/javers/javers/issues/142/events","html_url":"https://github.com/javers/javers/issues/142","id":71213949,"number":142,"title":"registerEntity ignored when @Id is also defined","user":{"login":"erikgollot","id":9380913,"avatar_url":"https://avatars.githubusercontent.com/u/9380913?v=3","gravatar_id":"","url":"https://api.github.com/users/erikgollot","html_url":"https://github.com/erikgollot","followers_url":"https://api.github.com/users/erikgollot/followers","following_url":"https://api.github.com/users/erikgollot/following{/other_user}","gists_url":"https://api.github.com/users/erikgollot/gists{/gist_id}","starred_url":"https://api.github.com/users/erikgollot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikgollot/subscriptions","organizations_url":"https://api.github.com/users/erikgollot/orgs","repos_url":"https://api.github.com/users/erikgollot/repos","events_url":"https://api.github.com/users/erikgollot/events{/privacy}","received_events_url":"https://api.github.com/users/erikgollot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/javers/javers/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T08:21:51Z","updated_at":"2015-04-29T09:22:58Z","closed_at":null,"body":"My problem is that I need to store the two versions of an Entity. So each one has a specific value for its @Id field. The real identity of my entities is the field businessIdentity. So I tried to register my entities with the following code\r\n```java\r\nEntityDefinition def = new EntityDefinition(PersistentEntity.class,\"businessIdentity\");\r\nbuilder.registerEntity(def);\r\nJavers javers = builder.build();\r\n```\r\n\r\nThe problem is that Javers (I look with the debugger), always take my @Id field as the object identity.\r\n\r\nDo I miss something ?\r\n"},"comment":{"url":"https://api.github.com/repos/javers/javers/issues/comments/97367389","html_url":"https://github.com/javers/javers/issues/142#issuecomment-97367389","issue_url":"https://api.github.com/repos/javers/javers/issues/142","id":97367389,"user":{"login":"bartoszwalacik","id":2511028,"avatar_url":"https://avatars.githubusercontent.com/u/2511028?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszwalacik","html_url":"https://github.com/bartoszwalacik","followers_url":"https://api.github.com/users/bartoszwalacik/followers","following_url":"https://api.github.com/users/bartoszwalacik/following{/other_user}","gists_url":"https://api.github.com/users/bartoszwalacik/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszwalacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszwalacik/subscriptions","organizations_url":"https://api.github.com/users/bartoszwalacik/orgs","repos_url":"https://api.github.com/users/bartoszwalacik/repos","events_url":"https://api.github.com/users/bartoszwalacik/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszwalacik/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T09:22:58Z","updated_at":"2015-04-29T09:22:58Z","body":"registerEntity(EntityDefinition) should have priority over annotation scanner. You mean that now we have diffrent situation, so @Id annotation overriders registerEntity(EntityDefinition)?"}}