openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-1111) Validation mode of callback should cause a PersistenceException when no provider is available
Date Wed, 10 Jun 2009 21:15:07 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718203#action_12718203
] 

Pinaki Poddar commented on OPENJPA-1111:
----------------------------------------

> but I think we still have the issue of when to set the alias to "jpa2", since we need
all of the product derivations applied to the config before we try to initialize the plugin.

Bootstapping (i.e. setting configuration plugin values via each discovered ProductDerivation)
and instantiation/initialization of these plugins are not only two separate concepts, they
occur in sequential phase. So I am missing the issue you raised. 
ProductDerivation are applied in deterministic order -- so that we know who can overwrite
whose settings. I have not read through this Validation feature, but from a layman's point
of view PersistenceProductDerivation seems to be the right place for setting the plugins value
to "jpa2" (btw, that "jpa2" is poor naming -- please change it). Its value i.e. ValidatingLifeCycleEventManager
will really get instantiated much later.

Another idea (I think the implementation of VLEM is almost there) is as VLEM anyway extends
previous LEM, if you can not initialize a VLEM because ValidationFactory/validation provider
is missing, validation mode is set to NONE (or whatever) you can degenerate VLEM instance's
behavior  to that of LEM. In that case you do not even need to configure it -- so it will
be hardcoded to VLEM (as opposed to LEM).  

> Validation mode of callback should cause a PersistenceException when no provider is available
> ---------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1111
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1111
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: validation
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.0.0-M2
>
>
> Validation mode of callback should cause a PersistenceException when no provider is available.
> This is a continuation of OPENJPA-1102 and OPENJPA-1068.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message