The ER diagram makes for a nice documentation.
If I select "Show Edge Labels" Idea prints the multiplicity at both ends of each association.
However it shows "0..1" even if the field has a @NotNull annotation.
That makes the diagram much less valuable for discussing the schema.
@NotNull
@org.jetbrains.annotations.NotNull
@ManyToOne
@JoinColumn(name = "role_id")
private Role role;
The logic should at least check for JetBrain's @NotNull annotation. Checking for hibernate's @NotNull annotation would also be nice. (There is a hibernate plugin in Idea anyway, right?)
Description
The ER diagram makes for a nice documentation.
If I select "Show Edge Labels" Idea prints the multiplicity at both ends of each association.
However it shows "0..1" even if the field has a @NotNull annotation.
That makes the diagram much less valuable for discussing the schema.
@NotNull
@org.jetbrains.annotations.NotNull
@ManyToOne
@JoinColumn(name = "role_id")
private Role role;
The logic should at least check for JetBrain's @NotNull annotation. Checking for hibernate's @NotNull annotation would also be nice. (There is a hibernate plugin in Idea anyway, right?)