Why JPA 2.0 annotations does not validate user inputs?

Solution Verified - Updated -

Issue

I'm using JPA 2.0 and some annotations like @Column(nullable=false) don't validate user inputs. Only when I add Bean Validation in my project and @NotNull annotation. Is this the expected behavior?

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x
  • JPA 2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content