Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Validation to DDL constraint
Validation to DDL constraint [message #795060] Thu, 09 February 2012 21:31 Go to next message
Eduardo Frazão is currently offline Eduardo Frazão
Messages: 118
Registered: January 2012
Senior Member
Hi all. Im new on Eclipselink (come from Hibernate). If i use the hibernate jsr 303 implementation, constraints like @NotNull or @Size will be translated to ddl schema during database creation or i will need to write this constraints in a @Column to?

thanks...
Re: Validation to DDL constraint [message #795725 is a reply to message #795060] Fri, 10 February 2012 16:23 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1016
Registered: July 2009
Senior Member
EclipseLink's DDL generation uses JPA annotations and xml, so you will need to put constraints and sizes within the @Column annotations.
Re: Validation to DDL constraint [message #795774 is a reply to message #795725] Fri, 10 February 2012 18:01 Go to previous message
Eduardo Frazão is currently offline Eduardo Frazão
Messages: 118
Registered: January 2012
Senior Member
Thanks @Chris Delahunt.

As Hibernate can use the Validation API to create database schema, I only wanna sure that Eclipselink do it or no!


But no problem! I will write the database constraints in JPA too!

Att,
Eduardo Frazão
Previous Topic:org.eclipse.persistence.exceptions.ValidationException
Next Topic:Relative Path to JDBC-Url
Goto Forum:
  


Current Time: Tue Jul 22 21:42:10 EDT 2014

Powered by FUDForum. Page generated in 0.03018 seconds