|
Experience with use of detachAllOnCommit
To all my fellow DNers out there you might find this useful:
I was experimenting with detachAllOnCommit and noticed that while it can be convenient by:
Avoiding explicit code to carefully perform
To all my fellow DNers out there you might find this useful:
I was experimenting with detachAllOnCommit and noticed that while it can be convenient by:
Avoiding explicit code to carefully perform
|
By
Page bloom
·
#100
·
|
|
Re: Cassandra AutoAdd Column Fails Due to Wrong Syntax in Generated Query
Hi,
Maybe nobody ever needed to use that code before?, or maybe CQL used to have something in an earlier version, can't remember.
If it is of importance to you, fork the repo and contribute a pull
Hi,
Maybe nobody ever needed to use that code before?, or maybe CQL used to have something in an earlier version, can't remember.
If it is of importance to you, fork the repo and contribute a pull
|
By
Andy
·
#99
·
|
|
Cassandra AutoAdd Column Fails Due to Wrong Syntax in Generated Query
Hi,
It looks like the CassandraSchemaHandler in the 5.1.0-release build does not have the appropriate cassandra CSQL for adding a column to the table.
I am getting a sql error when the auto column
Hi,
It looks like the CassandraSchemaHandler in the 5.1.0-release build does not have the appropriate cassandra CSQL for adding a column to the table.
I am getting a sql error when the auto column
|
By
Mark F
·
#98
·
|
|
Re: Datanucleus. Occasional javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field “linkedObject”
Hi Andy,
Thank you for reply. I have asked about the occasional/rare exception under high load not the ordinary plain "detached" exception.
Hi Andy,
Thank you for reply. I have asked about the occasional/rare exception under high load not the ordinary plain "detached" exception.
|
By
alex.khlystov@...
·
#97
·
|
|
Re: Datanucleus. Occasional javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field “linkedObject”
Seen before? Yes, when you don't detach that field, and then try to access it. That's the only situation the enhanced class will ever throw it.
Clearly nobody here sees what you are doing with
Seen before? Yes, when you don't detach that field, and then try to access it. That's the only situation the enhanced class will ever throw it.
Clearly nobody here sees what you are doing with
|
By
Andy
·
#96
·
Edited
|
|
Datanucleus. Occasional javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field “linkedObject”
Hi Guys,
I have posted this question here
https://stackoverflow.com/questions/51088208/datanucleus-occasional-javax-jdo-jdodetachedfieldaccessexception-you-have-just.
We get occasional exception while
Hi Guys,
I have posted this question here
https://stackoverflow.com/questions/51088208/datanucleus-occasional-javax-jdo-jdodetachedfieldaccessexception-you-have-just.
We get occasional exception while
|
By
alex.khlystov@...
·
#95
·
|
|
Re: Mapping native query results to POJO
Down to interpretation whether that is part of the JPA spec or not (the JPA spec is inexplicit as ever), but we consider it to be.The JDO API defines what we support as required handling, so you get
Down to interpretation whether that is part of the JPA spec or not (the JPA spec is inexplicit as ever), but we consider it to be.The JDO API defines what we support as required handling, so you get
|
By
Andy
·
#94
·
Edited
|
|
Mapping native query results to POJO
Hello,
I found out that I can map native query results to POJOs without any additional configuration:public class Person { private int id; private String name; // getters/setters}List<Person>
Hello,
I found out that I can map native query results to POJOs without any additional configuration:public class Person { private int id; private String name; // getters/setters}List<Person>
|
By
@Mogaba
·
#93
·
|
|
Re: Apart from Prepared Statement Is there way to Prevent SQL Injection ?
DataNucleus USES PreparedStatements! The generated SQL passed into PreparedStatements is formed from your JDOQL and your JDOQL parameters.
Only your security team can define where they think there is
DataNucleus USES PreparedStatements! The generated SQL passed into PreparedStatements is formed from your JDOQL and your JDOQL parameters.
Only your security team can define where they think there is
|
By
Andy
·
#92
·
Edited
|
|
Apart from Prepared Statement Is there way to Prevent SQL Injection ?
Hi,
I would like to know, Is there a way to prevent SQl injection by setting some properties in datanucleus / JDO side.
We are heavily using JDO in our product , Our Security team saying that Product
Hi,
I would like to know, Is there a way to prevent SQl injection by setting some properties in datanucleus / JDO side.
We are heavily using JDO in our product , Our Security team saying that Product
|
By
enataraj@...
·
#91
·
|
|
Re: Problems with DataNucleus JDO and MS Sql Server 2012
As the log shows, your database supports MixedCase datastore identifiers
and it is looking up a table name of "MSE". So have you created the table as that name (in capitals)? because if you haven't
As the log shows, your database supports MixedCase datastore identifiers
and it is looking up a table name of "MSE". So have you created the table as that name (in capitals)? because if you haven't
|
By
Andy
·
#90
·
|
|
Re: Problems with DataNucleus JDO and MS Sql Server 2012
This is the logfile after the enhancing of o/r class Mse.java:
The class to get MSE data from the database:
public class MseData {
private PersistenceManagerFactory pmf;
private
This is the logfile after the enhancing of o/r class Mse.java:
The class to get MSE data from the database:
public class MseData {
private PersistenceManagerFactory pmf;
private
|
By
Max Treptow
·
#89
·
|
|
Re: Problems with DataNucleus JDO and MS Sql Server 2012
Exceptions have stack traces, so post it; they show where the exception came from.
Also the log (DEBUG) tells you what was going on at that point, hence may have some SQL statement, or may be using
Exceptions have stack traces, so post it; they show where the exception came from.
Also the log (DEBUG) tells you what was going on at that point, hence may have some SQL statement, or may be using
|
By
Andy
·
#88
·
Edited
|
|
Problems with DataNucleus JDO and MS Sql Server 2012
When I try to read data from a very simple database table on the MS Sql Server 2012 by a DataNucleus JDO query, I get the following error message:
Exception in thread "main"
When I try to read data from a very simple database table on the MS Sql Server 2012 by a DataNucleus JDO query, I get the following error message:
Exception in thread "main"
|
By
Max Treptow
·
#87
·
|
|
Re: Possible optimization for "startsWith" in JDOQL (MySQL implementation)
You can easily enough develop your own handler for "startsWith" method, and provide a benchmark comparison of current versus that. This extension point
You can easily enough develop your own handler for "startsWith" method, and provide a benchmark comparison of current versus that. This extension point
|
By
Andy
·
#86
·
|
|
Possible optimization for "startsWith" in JDOQL (MySQL implementation)
I noticed that if a JDOQL query filter has something like:
firstNameLow.startsWith("fred")
it gets translated to a LOCATE in the where clause
where LOCATE('fred',a0.first_name_low) = 1;
In MySQL
I noticed that if a JDOQL query filter has something like:
firstNameLow.startsWith("fred")
it gets translated to a LOCATE in the where clause
where LOCATE('fred',a0.first_name_low) = 1;
In MySQL
|
By
Page bloom
·
#85
·
|
|
Re: Calling PostgreSQL functions with StoredProcedureQuery
Simple answer is that a postgresql 'function' is not the same as a jdbc stored procedure. Just try to write a jdbc CallableStatement and execute it using jdbc. And what happens? That is all this jpa
Simple answer is that a postgresql 'function' is not the same as a jdbc stored procedure. Just try to write a jdbc CallableStatement and execute it using jdbc. And what happens? That is all this jpa
|
By
Andy
·
#84
·
Edited
|
|
Calling PostgreSQL functions with StoredProcedureQuery
Hello,
I have problems with calling PostgreSQL functions with StoredProcedureQuery.
My persistence.xml file:<?xml version="1.0" encoding="UTF-8" ?><persistence
Hello,
I have problems with calling PostgreSQL functions with StoredProcedureQuery.
My persistence.xml file:<?xml version="1.0" encoding="UTF-8" ?><persistence
|
By
@Mogaba
·
#83
·
|
|
Re: Custom keys and models with objectIdClass, cause an exception when quering using mongo
Hi Andy,
Thanks for the response! I didn't change the queries since we need pretty much our current key configuration; but you gave me an idea: instead of direclty passing the Key object to
Hi Andy,
Thanks for the response! I didn't change the queries since we need pretty much our current key configuration; but you gave me an idea: instead of direclty passing the Key object to
|
By
Manuel Castillo <contact@...>
·
#82
·
|
|
Re: Custom keys and models with objectIdClass, cause an exception when quering using mongo
I can run an abstract base class + concrete subclass with a basic own definition of PK, and then persist an object (of the concrete type), and then call getObjectById using that PK (with it doing a
I can run an abstract base class + concrete subclass with a basic own definition of PK, and then persist an object (of the concrete type), and then call getObjectById using that PK (with it doing a
|
By
Andy
·
#81
·
Edited
|