[ 
https://issues.apache.org/jira/browse/ISIS-2651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420809#comment-17420809
 ] 

Daniel Keir Haywood commented on ISIS-2651:
-------------------------------------------

datanucleus.generateSchema.database.mode=create is the secret sauce.

 

Also note that we dynamically create the persistence unit, as per [1], but even 
so this config prop is ALSO required.

 

[1] 
https://www.datanucleus.org/products/accessplatform_5_2/jdo/persistence.html#persistenceunit

> JDO bootstrapping for h2 seems to only lazily create tables.  For 
> reliability, create all up-front.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-2651
>                 URL: https://issues.apache.org/jira/browse/ISIS-2651
>             Project: Isis
>          Issue Type: Improvement
>          Components: Isis Persistence JDO
>    Affects Versions: 2.0.0-M5
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Minor
>             Fix For: 2.0.0-M7
>
>
> Our updated JDO integration no longer seems to eagerly create tables on 
> bootstrap, instead creates them when first accessed.
> With our previous integration, this proved to be an issue with superclass 
> tables when DN didn't have the full meta-model to hand.  It would be safer to 
> create all up-front.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to