DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-1099
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

Provide default API and associated message that the user hasn't specified it for runtime enhancement

Created: 24/Dec/13 05:09 PM   Updated: 14/Jan/14 11:22 AM   Resolved: 24/Dec/13 05:10 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.11

 Description  « Hide
The original runtime enhancement left it to chance that the API would be assigned before creation of the Transformer etc. Really the user should always specify the API since we support multiple now (and the docs state very clearly how to do it).

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 24/Dec/13 05:10 PM
GitHub master has this

Chris Colman added a comment - 29/Dec/13 09:08 PM - edited
It might be worth adding the 'how to do this' in the migrate pages if we're moving away from a default API as DN now supports multiple.

I tried looking in the doco but I couldn't find how to explicitly set the properties to use JDO explicitly.

I already had:


in my file. I would have thought that should be sufficient to let DN know that I want to use JDO API.

Andy Jefferson added a comment - 30/Dec/13 06:38 AM
This is the runtime enhancer, before any JDO PMF is created.
I would have thought that looking at the docs for the enhancer it is pretty clear how to set the API, on this page

Chris Colman added a comment - 30/Dec/13 10:30 AM
Ah! That makes sense now: Runtime enhancement can occur without requiring access to the DB so it doesn't really need a JDO PMF nor the properties file. The =-api=JDO suffix is what I was missing.