History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-15139
Type: New Feature New Feature
Status: Open Open
Assignee: Gregory Shrago
Reporter: Stephen Friedrich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

ER diagram: Show "1" instead "0..1" for @NotNull annotated fields

Created: 20 Sep 07 12:15   Updated: 20 Sep 07 12:34
Component/s: J2EE.Designer

Build: 7,291


 Description  « Hide
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?)



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.