I'm asking myself about some hibernate annotations when using at the same time.
For example:
@OneToOne(optional = false)
@JoinColumn(name = "taskID", nullable = false, unique = true)
private Task task;
Ok, it's a oneToOne not optionnal... So it's impossible to have null or duplicate, isn't it? Do Hibernate do exactly the same thing accros all the differents DB?
In this case, what is preferable?... To be more precis, what do you prefer? Saying nullable and unique or not?
I know it seems stupid but that's the kind of questions that I want to eradicate from my mind.