Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiN2UxZDI3YjA3...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16288?atlOrigin=eyJpIjoiN2UxZD...
) HHH-16288 (
https://hibernate.atlassian.net/browse/HHH-16288?atlOrigin=eyJpIjoiN2UxZD...
) Ability to enhance a class to add virtual @Id, @Version (
https://hibernate.atlassian.net/browse/HHH-16288?atlOrigin=eyJpIjoiN2UxZD...
)
Change By: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
E.g. I can see some usefulness in:
{noformat}/**
* A class from an external source - aka cannot be changed
*/
public class Person {
String firstName;
String lastName;
...
}{noformat}
{noformat}<entity-mappings>
<entity name="Person">
<attributes>
<!-- virtual attributes -->
<id .../>
<version ../>
<basic name="firstName" .../>
<basic name="lastName" .../>
</attributes>
</entity>
</entity-mappings>{noformat}
In a way its a natural replacement for the legacy support for of persisting entities with
“external ids”.
(
https://hibernate.atlassian.net/browse/HHH-16288#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16288#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:2199b34 )