Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Validation to DDL constraint
Validation to DDL constraint [message #795060] Fri, 10 February 2012 02:31 Go to next message
Eduardo Frazão is currently offline Eduardo FrazãoFriend
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 21:23 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1039
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 23:01 Go to previous message
Eduardo Frazão is currently offline Eduardo FrazãoFriend
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: Sun Nov 23 14:45:15 GMT 2014

Powered by FUDForum. Page generated in 0.02157 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software