On 19 January 2015 at 13:33, Emmanuel Bernard <emmanuel(a)hibernate.org> wrote:
Hey,
I am throwing an idea, let me know what you think.
If the return type of the id property of an entity is either String or UUID, could we
automatically consider one fo the uuid strategy as the one matching AUTO?
+1
That seems spot-on for the UUID type.
For String, I wonder if someone would argue that it should actually
map to a string-encoded output of a sequence.. "1", "2" ...
I'd personally agree that this is horrible and it should default to
UUID, just wondering.
Would this violate any spec?
It would be useful for Hibernate OGM but I am also thinking that it makes equal sense to
Hibernate ORM users.
Thoughts? I’m sure there are incompatibilities I have not think of.
Emmanuel
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev