Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Thu Nov 13 00:37:49 EST 2025

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

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

Back to the top