Results 1 to 4 of 4

Thread: JSR 303 and GAE

  1. #1

    Default JSR 303 and GAE

    Roo's bean Validation (JSR 303) support, would it work on GAE?
    As far as I know, Roo uses Hibernate validator and Hibernate does not work on GAE.

    Or it is possible to use just hibernate validation without using actual hibernate !

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Others have got Roo working on GAE (see tips in https://jira.springsource.org/browse/ROO-146). As GAE supports JPA you should be able to use Hibernate.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3

    Default

    Can you please be more specific?

    > As GAE supports JPA you should be able to use Hibernate.

    You mean hibernate validator or hibernate ORM ?

    GAE supports JPA but not hibernate.

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Ooops, I stand corrected. You'll need to use org.datanucleus.store.appengine.jpa.DatastorePersi stenceProvider as your JPA provider. That's what the sample project in ROO-146 used.

    We are addressing cloud interop in the next major version of Roo, so expect to see far better integration coming shortly.

    In theory you should be able to use Hibernate Validator without Hibernate. For example Spring Framework 3 uses JSR 303 in its web tier for validation, and Roo uses this feature to validate presented form backing objects. As such my advice is to simply give it a try. Roo automatically adds Hibernate Validator to your project when you insert the field field that uses JSR 303 (Bean Validation) annotations.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •