Generatore di sequenza e usertype
Domanda
Ho un generatore di sequenza
<id name="idPersistent" type="objectID" column="aa_id">
<generator class="sequence">
<param name="sequence">lab_seq</param>
</generator>
</id>
.
ObjectID è la mia usertype. Ho ricevuto un errore
javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: this id generator generates long, integer, short or string
.
Cosa posso fare?
Soluzione
try these links, I hope these will help you
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow