You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jeremy Bauer (JIRA)" <ji...@apache.org> on 2009/05/06 21:38:30 UTC
[jira] Created: (OPENJPA-1068) Support Bean Validation: Entity
validation upon lifecycle events
Support Bean Validation: Entity validation upon lifecycle events
----------------------------------------------------------------
Key: OPENJPA-1068
URL: https://issues.apache.org/jira/browse/OPENJPA-1068
Project: OpenJPA
Issue Type: Sub-task
Components: jpa
Affects Versions: 2.0.0
Reporter: Jeremy Bauer
Assignee: Jeremy Bauer
This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OPENJPA-1068) Support Bean Validation: Entity
validation upon lifecycle events
Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy Bauer resolved OPENJPA-1068.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
> Support Bean Validation: Entity validation upon lifecycle events
> ----------------------------------------------------------------
>
> Key: OPENJPA-1068
> URL: https://issues.apache.org/jira/browse/OPENJPA-1068
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 2.0.0
> Reporter: Jeremy Bauer
> Assignee: Jeremy Bauer
> Fix For: 2.0.0
>
>
> This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OPENJPA-1068) Support Bean Validation: Entity
validation upon lifecycle events
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761282#action_12761282 ]
Pinaki Poddar commented on OPENJPA-1068:
----------------------------------------
1. ValidatingLifeCycleEventManager : The JavaDoc for constructor is incorrect.
2. ValidatingLifeCycleEventManager : Carries some auto-generated method headers
3. Validator interface JavaDoc is incorrect.
> Support Bean Validation: Entity validation upon lifecycle events
> ----------------------------------------------------------------
>
> Key: OPENJPA-1068
> URL: https://issues.apache.org/jira/browse/OPENJPA-1068
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 2.0.0-M2
> Reporter: Jeremy Bauer
> Assignee: Jeremy Bauer
> Fix For: 2.0.0-M2
>
>
> This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (OPENJPA-1068) Support Bean Validation: Entity
validation upon lifecycle events
Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on OPENJPA-1068 started by Jeremy Bauer.
> Support Bean Validation: Entity validation upon lifecycle events
> ----------------------------------------------------------------
>
> Key: OPENJPA-1068
> URL: https://issues.apache.org/jira/browse/OPENJPA-1068
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 2.0.0
> Reporter: Jeremy Bauer
> Assignee: Jeremy Bauer
>
> This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OPENJPA-1068) Support Bean Validation: Entity
validation upon lifecycle events
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761281#action_12761281 ]
Pinaki Poddar commented on OPENJPA-1068:
----------------------------------------
Is the following a bug in ValidatingLifeCycleManager and its correction?
@@ -75,7 +74,7 @@
- return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) ||
+ return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) ||
@@ -84,7 +83,7 @@
- return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) ||
+ return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) ||
> Support Bean Validation: Entity validation upon lifecycle events
> ----------------------------------------------------------------
>
> Key: OPENJPA-1068
> URL: https://issues.apache.org/jira/browse/OPENJPA-1068
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 2.0.0-M2
> Reporter: Jeremy Bauer
> Assignee: Jeremy Bauer
> Fix For: 2.0.0-M2
>
>
> This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OPENJPA-1068) Support Bean Validation: Entity
validation upon lifecycle events
Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710408#action_12710408 ]
Jeremy Bauer commented on OPENJPA-1068:
---------------------------------------
Committed rev 1 under revision 776009. This rev provides a means for lifecycle-based validation by extending the LifecycleEventManager with a ValidatingLifecycleEventManager. The validating version uses a pluggable validation implementation to determine if validation should take place and then to validate the entity. A simple JSR-303 based validation impl wrapper is also included. The config code to enable validation (use the validating lifecycle event manager and plug in the validation impl) will be added under a separate item.
> Support Bean Validation: Entity validation upon lifecycle events
> ----------------------------------------------------------------
>
> Key: OPENJPA-1068
> URL: https://issues.apache.org/jira/browse/OPENJPA-1068
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 2.0.0
> Reporter: Jeremy Bauer
> Assignee: Jeremy Bauer
>
> This task is to add support for basic lifecycle validation capabilities in the kernel and pluggable validation in the persistence layer.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.