Issue Details (XML | Word | Printable)

Key: NUCCORE-1160
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

Support javax.validation annotations @Size, @NotNull to imply metadata and avoid the need to duplicate that information with JDO/JPA annotations

Created: 18/Mar/14 03:03 PM   Updated: 29/Mar/14 12:19 PM   Resolved: 18/Mar/14 03:05 PM
Component/s: MetaData, Schema
Affects Version/s: None
Fix Version/s: 4.0.0.m2


 Description  « Hide
If a user has a field declared as

    @NotNull(message="Forename must be specified.")
    String forename;

then that is the equivalent to specifying the column as allows-null=false. Similarly

    @Size(min = 0, max = 9)
    String login;

is the same as specifying the column as length=9

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 18/Mar/14 03:05 PM
GitHub master provides this now