Lo más importante es lo que pone en la conclusion:
Conclusion
I would expect that these two new generators actually replace currently existing ones in terms of short-hand names
. Specifically, I would expect
- the implementation behind
sequence
to change from org.hibernate.SequenceGenerator to the new org.hibernate.id.enhanced.SequenceStyleGenerator
- the implementation behing
table
to change from org.hibernate.TableGenerator to the new org.hibernate.id.enhanced.TableGenerator
The second is the more risky replacement because of the big difference between the two. But we've all along discouraged direct use of the current table
generator so I think we should be safe there. I am still uncertain when that replacement will happen (probably 4.0?), but in the meantime, the new generators are available and highly recommended for use.
No hay comentarios:
Publicar un comentario