mysql @Column unique

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

mysql @Column unique

Matthew Broadhead-2
i am using <property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)" /> to generate the MySQL tables
based on the entities.

however @Column(unique = true) does not seem to have flaged the field as
unique
Reply | Threaded
Open this post in threaded view
|

Re: mysql @Column unique

Mark Struberg-3
Do you have an example code somewhere?

LieGrue,
strub


> Am 04.11.2019 um 16:46 schrieb Matthew Broadhead <[hidden email]>:
>
> i am using <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" /> to generate the MySQL tables based on the entities.
>
> however @Column(unique = true) does not seem to have flaged the field as unique