[seam-issues] [JBoss JIRA] Commented: (JBSEAM-3247) Seam without hibernate: Please make org.jboss.seam.core.Validators independent from Hibernate

John Franey (JIRA) jira-events at lists.jboss.org
Sat Nov 27 13:51:30 EST 2010

    [ https://jira.jboss.org/browse/JBSEAM-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565712#comment-12565712 ] 

John Franey commented on JBSEAM-3247:

I tried to implement a Validators for java bean validation w/ 2.2.0.GA.  Its possible that I don't know enough about how to extend seam for this.  I thought I'd only have to provide an alternate implementation to Validators with a validate method and bind it to the seam name: "org.jboss.seam.core.validators".  Is that the suggested approach, if so, it is not independent from Hibernate.

1) Validators.instance casts to org.jboss.seam.core.Validators - any alternate implementation must extend from this class.
2) Validators.validate returns an array of objects defined by Hibernate: InvalidValue - any alternate implementation must import org.hibernate.validator.InvalidValue

> Seam without hibernate: Please make org.jboss.seam.core.Validators independent from Hibernate 
> ----------------------------------------------------------------------------------------------
>                 Key: JBSEAM-3247
>                 URL: https://jira.jboss.org/browse/JBSEAM-3247
>             Project: Seam
>          Issue Type: Feature Request
>    Affects Versions: 2.0.2.GA
>            Reporter: Francisco Jose Peredo Noguez
>            Assignee: Pete Muir
>              Labels: hibernate_validation, seam_independence, seam_validation
>             Fix For: 2.1.0.BETA1
> I think org.jboss.seam.core.Validators should implement and interface, so that it could be possible to replace it with one that doesn't use org.hibernate.validator.ClassValidator I guess with that we could say that Seam can be used in a 100% free of Hibernate way
> I really like Hibernate, but sometimes, for really simple projects, or for projects full of interactions with stored procedures , it might be overkill or innapropiate, so it would be nice to be able to use Seam without having any Hibernate dependencies.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list