sagarswathi / h2database

Automatically exported from code.google.com/p/h2database
0 stars 1 forks source link

Feature request: Set unique constraints to allow NULL values #385

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
While Oracle allows NULL values for contraint fields, H2 initialises strings 
with "", integers with 0 and so on per default if constraints are defined with 
@UniqueConstraint annotation in JPA entities.

Please provide a property to set H2 to allow NULL values for constraint fields 
globally.

Original issue reported on code.google.com by marc.wal...@gmail.com on 19 Mar 2012 at 9:09

GoogleCodeExporter commented 8 years ago
Please only file an issue if you are completely sure there is a problem. The 
reason is that only very few people have a look at this issues, while a lot 
more people will be able to help if you use StackOverflow or the H2 Google 
Group.

H2 also allows NULL for constraint fields. I can't reproduce the problem. I 
guess you will need to provide more details on your setup (but please use 
StackOverflow or the H2 Google Group)

Original comment by thomas.t...@gmail.com on 19 Mar 2012 at 8:01