|
Re: "No such database row" error when lazily loading a field of an entity
Thanks Andy. Does this mean we should try to load these fields eagerly?
It also seems this only happens under higher load.
What would be a good place to start looking for why this exception is being
Thanks Andy. Does this mean we should try to load these fields eagerly?
It also seems this only happens under higher load.
What would be a good place to start looking for why this exception is being
|
By
mwhesse@...
·
#388
·
|
|
Re: "No such database row" error when lazily loading a field of an entity
This is an indicator that a field is NOT loaded and something wants it. Only you know your class, and what field you have there, and what is invoked to try to get that field
This is an indicator that a field is NOT loaded and something wants it. Only you know your class, and what field you have there, and what is invoked to try to get that field
|
By
Andy
·
#387
·
|
|
Re: "No such database row" error when lazily loading a field of an entity
On Wed, Jul 7, 2021 at 08:24 AM, <mwhesse@...> wrote:
loadUnloadedFieldsInFetchPlanWondering about that bit, is this an indicator that the field was loaded previously and has been unloaded? Under
On Wed, Jul 7, 2021 at 08:24 AM, <mwhesse@...> wrote:
loadUnloadedFieldsInFetchPlanWondering about that bit, is this an indicator that the field was loaded previously and has been unloaded? Under
|
By
mwhesse@...
·
#386
·
|
|
"No such database row" error when lazily loading a field of an entity
I'm getting the below error (rather "randomly') when loading certain fields of my entities. I don't know where to start looking. Any kind of advice is appreciated.
On DN 5.2 with SQL Server. Let me
I'm getting the below error (rather "randomly') when loading certain fields of my entities. I don't know where to start looking. Any kind of advice is appreciated.
On DN 5.2 with SQL Server. Let me
|
By
mwhesse@...
·
#385
·
|
|
Re: DN 6.0.0-M1 released
It is all utterly inconsistent, of course, with javax.persistence developed outside of Oracle (under Eclipse) and so being renamed (just to add pain to its users), and javax.jdo developed outside of
It is all utterly inconsistent, of course, with javax.persistence developed outside of Oracle (under Eclipse) and so being renamed (just to add pain to its users), and javax.jdo developed outside of
|
By
Andy
·
#384
·
|
|
Re: DN 6.0.0-M1 released
So on further reading I realized Oracle has just separated out JEE stuff to Eclipse. I had previously misunderstood Oracle's stance to imply that all non "core Java" libraries using javax.* packaging
So on further reading I realized Oracle has just separated out JEE stuff to Eclipse. I had previously misunderstood Oracle's stance to imply that all non "core Java" libraries using javax.* packaging
|
By
Page bloom
·
#383
·
|
|
Re: DN 6.0.0-M1 released
Ah cool. It was my understanding that any 'javax.*' packages would have to be renamed.
Ah cool. It was my understanding that any 'javax.*' packages would have to be renamed.
|
By
Page bloom
·
#382
·
|
|
Re: DN 6.0.0-M1 released
No. It's nothing to do with 'java ee'.
No. It's nothing to do with 'java ee'.
|
By
Andy
·
#381
·
|
|
Re: DN 6.0.0-M1 released
Will the JDO API have to undergo a similar Jakartification?
Will the JDO API have to undergo a similar Jakartification?
|
By
Page bloom
·
#380
·
|
|
ResultClass cannot inherit class with same field names?
Hi,
I'm not sure if this is a bug or by design. I have raised an issue in the Datanucleus-rdbms project at https://github.com/datanucleus/datanucleus-rdbms/issues/384, but not sure which forum is
Hi,
I'm not sure if this is a bug or by design. I have raised an issue in the Datanucleus-rdbms project at https://github.com/datanucleus/datanucleus-rdbms/issues/384, but not sure which forum is
|
By
ebenzacar@...
·
#379
·
Edited
|
|
Re: How to use Queries that do not start with "SELECT" but return a data set?
Since RDBMS datastores each have their own dialect, and since they have such a wide variety of random stuff you can put into an SQL statement, it is necessary to categorise statements and use the
Since RDBMS datastores each have their own dialect, and since they have such a wide variety of random stuff you can put into an SQL statement, it is necessary to categorise statements and use the
|
By
Andy
·
#378
·
|
|
How to use Queries that do not start with "SELECT" but return a data set?
My DBA has prepared some custom SQL queries that he does not want to put into StoredProcs. So I want to execute them via a normal Query.executeResultList(). However, I noticed that if the query does
My DBA has prepared some custom SQL queries that he does not want to put into StoredProcs. So I want to execute them via a normal Query.executeResultList(). However, I noticed that if the query does
|
By
ebenzacar@...
·
#377
·
Edited
|
|
Re: How to use PreparedStatements with the Persistence Manager?
Thanks for the link. I had tried a github search for PreparedStatement on the samples repo, but hadn't thought of searching for tests. I had not realized that the JDOConnection could simply be cast
Thanks for the link. I had tried a github search for PreparedStatement on the samples repo, but hadn't thought of searching for tests. I had not realized that the JDOConnection could simply be cast
|
By
ebenzacar@...
·
#376
·
|
|
Re: How to use PreparedStatements with the Persistence Manager?
The JDO spec is public, as is the JDO TCK which will have tests. Also this test.
The JDO spec is public, as is the JDO TCK which will have tests. Also this test.
|
By
Andy
·
#375
·
Edited
|
|
How to use PreparedStatements with the Persistence Manager?
I have a few pieces of code that use native PreparedStatements, but am having trouble using them in conjunction with the PersistenceManager. The current approach is:
Connection conn =
I have a few pieces of code that use native PreparedStatements, but am having trouble using them in conjunction with the PersistenceManager. The current approach is:
Connection conn =
|
By
ebenzacar@...
·
#374
·
Edited
|
|
Re: Problems with Java 16
Thank you Andy for your reply.
I've modified my master POM file to use the pluginManagement section and magically everything now works (probably there was some wrong dependency somewhere, probably
Thank you Andy for your reply.
I've modified my master POM file to use the pluginManagement section and magically everything now works (probably there was some wrong dependency somewhere, probably
|
By
claudio_rosati@...
·
#373
·
|
|
Re: Does JDO provide a hook/trigger to identify a transaction commit/boundary?
Look at JDO spec 13.4.3, you can calland be notified via the (standard) beforeCompletion/afterCompletion methods.
Note that this is for a transaction itself. It will not include NON-TRANSACTIONAL ops
Look at JDO spec 13.4.3, you can calland be notified via the (standard) beforeCompletion/afterCompletion methods.
Note that this is for a transaction itself. It will not include NON-TRANSACTIONAL ops
|
By
Andy
·
#372
·
|
|
Does JDO provide a hook/trigger to identify a transaction commit/boundary?
I'm working on migrating legacy code that was using the OpenJPA Transaction Listener to identify a transaction boundary (commit) to trigger some post-commit functionality. The logic is a bit messy,
I'm working on migrating legacy code that was using the OpenJPA Transaction Listener to identify a transaction boundary (commit) to trigger some post-commit functionality. The logic is a bit messy,
|
By
ebenzacar@...
·
#371
·
|
|
DN 6.0.0-M1 released
DN v6.0.0.m1 is released.
Notable changes are
Minimum Java requirement v11. Upgraded ASM to v9.1 to provide for all current bytecode.
Support for Jakarta Persistence v3.0+ API. The JPA API is
DN v6.0.0.m1 is released.
Notable changes are
Minimum Java requirement v11. Upgraded ASM to v9.1 to provide for all current bytecode.
Support for Jakarta Persistence v3.0+ API. The JPA API is
|
By
Andy
·
#370
·
|
|
Re: Problems with Java 16
Thanks for the info. Since I don't have Java16, and unlikely to ever have it (not an extended lifetime release AFAIK), I cant confirm or otherwise. You can provide a GitHub pull request for the
Thanks for the info. Since I don't have Java16, and unlikely to ever have it (not an extended lifetime release AFAIK), I cant confirm or otherwise. You can provide a GitHub pull request for the
|
By
Andy
·
#369
·
Edited
|