|
Possible optimization for "startsWith" in JDOQL (MySQL implementation)
2 messages
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 (test
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 (test
|
By
Page bloom
·
|
|
Problems with DataNucleus JDO and MS Sql Server 2012
4 messages
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" javax.jdo.JDODataStoreExce
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" javax.jdo.JDODataStoreExce
|
By
Max Treptow
·
|
|
Apart from Prepared Statement Is there way to Prevent SQL Injection ?
2 messages
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@...
·
|
|
Mapping native query results to POJO
2 messages
Hello, I found out that I can map native query results to POJOs without any additional configuration: ```java public class Person { private int id; private String name; // getters/setters } List<Perso
Hello, I found out that I can map native query results to POJOs without any additional configuration: ```java public class Person { private int id; private String name; // getters/setters } List<Perso
|
By
@Mogaba
·
|
|
Datanucleus. Occasional javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field “linkedObject”
3 messages
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@...
·
|
|
Cassandra AutoAdd Column Fails Due to Wrong Syntax in Generated Query
2 messages
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 cre
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 cre
|
By
Mark F
·
|
|
Experience with use of detachAllOnCommit
2 messages
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 deta
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 deta
|
By
Page bloom
·
|
|
Data nucleus with springboot
4 messages
Hi Guys, I would like to ask some help regarding the issue below. DataNucleus.Persistence : Error : Could not find API definition for name "JDO". Perhaps you dont have the requisite datanucleus-api-XX
Hi Guys, I would like to ask some help regarding the issue below. DataNucleus.Persistence : Error : Could not find API definition for name "JDO". Perhaps you dont have the requisite datanucleus-api-XX
|
By
rommeldsumpo@...
·
|
|
Warning about BigInteger after switching to MySQL Connector J version 8.0.15 from 5.1.40
The following error says I should report this to the DataNucleus developers so just doing my duty :) 22:54:15.392 [main] WARN DataNucleus.Datastore - Default type for java type of java.math.BigInteger
The following error says I should report this to the DataNucleus developers so just doing my duty :) 22:54:15.392 [main] WARN DataNucleus.Datastore - Default type for java type of java.math.BigInteger
|
By
Page bloom
·
|
|
Datanucleus 5 informix 11 Failed initialising database
3 messages
I am trying to connect to informix with no success. Here is the staketrace: Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/p
I am trying to connect to informix with no success. Here is the staketrace: Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/p
|
By
vthokonya@...
·
|
|
Possible optimization when query candidate is a class with no base class
5 messages
When a candidate class for a query is a class that has no base class then, in an RDBMS datastore at least, there should be no need to specify discriminators because they don't need to be part of any f
When a candidate class for a query is a class that has no base class then, in an RDBMS datastore at least, there should be no need to specify discriminators because they don't need to be part of any f
|
By
Page bloom
·
|
|
One Model mapped on several database type (JPA)
7 messages
Hello, Is it possible to have one mapping (file I guess) per database type, which are chosen at runtime "automatically" ? ex: orm-mysql.xml orm-h2.xml ... My need is I'm running the same application o
Hello, Is it possible to have one mapping (file I guess) per database type, which are chosen at runtime "automatically" ? ex: orm-mysql.xml orm-h2.xml ... My need is I'm running the same application o
|
By
passignat@...
·
|
|
JPA schema creation : column name capitalized
2 messages
Hi, In the orm.xml files all names are lower case, but they are created in upper case in the database. How to make schema tool to keep unchanged the case of column names ? thanks -- Stephane
Hi, In the orm.xml files all names are lower case, but they are created in upper case in the database. How to make schema tool to keep unchanged the case of column names ? thanks -- Stephane
|
By
passignat@...
·
|
|
JPA native query parsing
2 messages
Hi, It seems DN parse the native queries before execution. I found 2 cases: -1- Query with * projection on flat inheritance model The model (ex: Client -|> Person) mapped on one single table PERSON (I
Hi, It seems DN parse the native queries before execution. I found 2 cases: -1- Query with * projection on flat inheritance model The model (ex: Client -|> Person) mapped on one single table PERSON (I
|
By
passignat@...
·
|
|
JPA schema creation : Unique index on foreign-keys
2 messages
Hi, The schema tool is creating unique indexes on every foreign-key. I'm trying to reproduce the case on a shareable application, but I can't reproduce. The index name pattern is <Target table>_U<numb
Hi, The schema tool is creating unique indexes on every foreign-key. I'm trying to reproduce the case on a shareable application, but I can't reproduce. The index name pattern is <Target table>_U<numb
|
By
passignat@...
·
|
|
Dirty Objects in L2Cache (JPA)
3 messages
I faced the bellow "issue" while detaching a query result. An application fix is to desactivate the L2Cache. Cannot make object non-transactional since object is dirty org.datanucleus.exceptions.Nucle
I faced the bellow "issue" while detaching a query result. An application fix is to desactivate the L2Cache. Cannot make object non-transactional since object is dirty org.datanucleus.exceptions.Nucle
|
By
passignat@...
·
|
|
How to load or fetch lazy attribute of a persistent super class in JPA with EntityGraph ?
2 messages
I have an inheritance model with OneToMany (Collections) declared in the super-class (persistent). When I perform a query on the subclasses I would like to load these elements. So far I can't find how
I have an inheritance model with OneToMany (Collections) declared in the super-class (persistent). When I perform a query on the subclasses I would like to load these elements. So far I can't find how
|
By
passignat@...
·
|
|
JPQL date literrals: documentation error
2 messages
Regarding date format, there is a error in the documentation. Month are specified as 'mm' like minutes. It would be better to mention MM (looks like SimpledateFormat) JPQL supports literals of the fol
Regarding date format, there is a error in the documentation. Month are specified as 'mm' like minutes. It would be better to mention MM (looks like SimpledateFormat) JPQL supports literals of the fol
|
By
passignat@...
·
|
|
PersistenceUnitUtil getIdentifier doesn't return the oid
3 messages
In JPA, the equivalent to JDOHelper.getObjectId, seems to be PersistenceUnitUtil.getIdentifier. Trying to use it (test purposes) with the L2Cache I face an issue. Using the model of the DN example, em
In JPA, the equivalent to JDOHelper.getObjectId, seems to be PersistenceUnitUtil.getIdentifier. Trying to use it (test purposes) with the L2Cache I face an issue. Using the model of the DN example, em
|
By
passignat@...
·
|
|
JPA identity : primary-key unicity violated
5 messages
Hello, After a while (of successes and failures) I reach a point where inserts break the unique index on the database table. I use MySQL, with a Long id for each class and hikari as connection pool. T
Hello, After a while (of successes and failures) I reach a point where inserts break the unique index on the database table. I use MySQL, with a Long id for each class and hikari as connection pool. T
|
By
passignat@...
·
|