openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OPENJPA-1237) WriteBehind configuration exception not thrown when it should be
Date Mon, 14 Sep 2009 13:51:57 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Donald Woods resolved OPENJPA-1237.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.0)
                   2.0.0-M3
         Assignee: Michael Dick  (was: Donald Woods)

Committed by Mike on 8/15 in r804539.

> WriteBehind configuration exception not thrown when it should be
> ----------------------------------------------------------------
>
>                 Key: OPENJPA-1237
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1237
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: writebehind
>    Affects Versions: 2.0.0
>            Reporter: Tim McConnell
>            Assignee: Michael Dick
>             Fix For: 2.0.0-M3
>
>         Attachments: OPENJPA-1237-3.patch
>
>
> It seems like there should be exception(s) thrown when the new writebehind cache is not
configured properly. For example, this is not a valid PU configuration since there is no DataCache
specified. 
>     <persistence-unit name="WriteBehind_JSE_INVALID_PU1">
>         <mapping-file>META-INF/orm.xml</mapping-file>
>         <properties>
>             <property name="openjpa.DataCache" value="false"/>                
               
>             <property name="openjpa.WriteBehindCache" value="true"/>          
              
>             <property name="openjpa.WriteBehindCallback" value="true(sleepTime=15000)"/>
    
>         </properties>
>     </persistence-unit>
> Yet there is no error or exception thrown when this statement is executed:
>            emf = Persistence.createEntityManagerFactory("WriteBehind_JSE_INVALID_PU1");

-- 
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