|
Re: How to do range query with Datanucleus/JDO?
JDOQL would be something like
Left as an exercise to write that using JDOQLTyped syntax if that is what you're using.
No idea what you mean by "implementation for Hub"; they are your classes so you
JDOQL would be something like
Left as an exercise to write that using JDOQLTyped syntax if that is what you're using.
No idea what you mean by "implementation for Hub"; they are your classes so you
|
By
Andy
·
#223
·
Edited
|
|
How to do range query with Datanucleus/JDO?
What would be the Datanucleus/JDO implementation to this:
Suppose I have a POJO, `Hub` which represents a place/location:
```java
class Hub {
List<Schedule> schedules;
}
```
And a `Schedule`
What would be the Datanucleus/JDO implementation to this:
Suppose I have a POJO, `Hub` which represents a place/location:
```java
class Hub {
List<Schedule> schedules;
}
```
And a `Schedule`
|
By
qquantum@...
·
#222
·
|
|
Re: Ambiguous column names in subquery
Hello Andy,
Please find below my response,
You post some SQL but don't say how that was executed ... an SQL query? - Yes, it executes as a SQL query.
It is a JDOQL query, we create a query object
Hello Andy,
Please find below my response,
You post some SQL but don't say how that was executed ... an SQL query? - Yes, it executes as a SQL query.
It is a JDOQL query, we create a query object
|
By
mayank.chawla@...
·
#221
·
Edited
|
|
Re: Object deletion with optimistic version field failed
I'm trying ...
--
Stephane
I'm trying ...
--
Stephane
|
By
stephane
·
#220
·
|
|
Re: Object deletion with optimistic version field failed
That message says "with a way of reproducing it".
That message says "with a way of reproducing it".
|
By
Andy
·
#219
·
|
|
Re: Object deletion with optimistic version field failed
A workaround or solution is to refresh the object before delete. (I don't know enough the spec to qualify as workaround or solution)
--
Stephane
A workaround or solution is to refresh the object before delete. (I don't know enough the spec to qualify as workaround or solution)
--
Stephane
|
By
stephane
·
#218
·
|
|
Object deletion with optimistic version field failed
Hi,
Since I added optimistic locking, with a numeric version attribute, the deletion doesn't work.
ERROR DataNucleus.Persistence - Object with id "1" in table I18N_MESSAGE has no version set on the
Hi,
Since I added optimistic locking, with a numeric version attribute, the deletion doesn't work.
ERROR DataNucleus.Persistence - Object with id "1" in table I18N_MESSAGE has no version set on the
|
By
stephane
·
#217
·
|
|
Re: Ambiguous column names in subquery
You post some SQL but don't say how that was executed ... an SQL query? If that SQL is "generated" from JDOQL/JPQL then visibility of the origin of it (aka JDOQL/JPQL and the classes) is sort of
You post some SQL but don't say how that was executed ... an SQL query? If that SQL is "generated" from JDOQL/JPQL then visibility of the origin of it (aka JDOQL/JPQL and the classes) is sort of
|
By
Andy
·
#216
·
Edited
|
|
Ambiguous column names in subquery
Hello,
As part of migration from 2.x to 5.x, we are facing a error because the select statement is having ambiguous column name. Same code was working with previous version, looks like we have to
Hello,
As part of migration from 2.x to 5.x, we are facing a error because the select statement is having ambiguous column name. Same code was working with previous version, looks like we have to
|
By
mayank.chawla@...
·
#215
·
|
|
Re: datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or JPQL currently
Thanks for your reply Andy.
Right, its hard to answer with this less supporting info, I thought if there is something obvious around it that can be changed. I am checking the stacktrace and would get
Thanks for your reply Andy.
Right, its hard to answer with this less supporting info, I thought if there is something obvious around it that can be changed. I am checking the stacktrace and would get
|
By
mayank.chawla@...
·
#214
·
Edited
|
|
Re: datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or JPQL currently
Provide BASIS for the error message, such as code, and log entries. That way there is a basis to attempt to answer something that currently has no context.
You could, of course, just get the code and
Provide BASIS for the error message, such as code, and log entries. That way there is a basis to attempt to answer something that currently has no context.
You could, of course, just get the code and
|
By
Andy
·
#213
·
|
|
datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or JPQL currently
Hello,
I am migrating from 2.x to 5.x and getting below exception during runtime, please advice how to fix this issue.
datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or
Hello,
I am migrating from 2.x to 5.x and getting below exception during runtime, please advice how to fix this issue.
datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or
|
By
mayank.chawla@...
·
#212
·
|
|
Re: Change in enhanced classes implemented interface from PersistenceCapable to Persistable from version 4.x
Refactor what code? Why are you making explicit reference to "PersistenceCapable" in the first place? It has never been advisable to use an internal interface (which is what it is when part of the JDO
Refactor what code? Why are you making explicit reference to "PersistenceCapable" in the first place? It has never been advisable to use an internal interface (which is what it is when part of the JDO
|
By
Andy
·
#210
·
Edited
|
|
Change in enhanced classes implemented interface from PersistenceCapable to Persistable from version 4.x
Hello,
I am migrating from 2.x to 5.x and all my old code is around javax.jdo.spi.PersistenceCapable(types casting from object type etc). But now when I enhanced my classes using latest version, I can
Hello,
I am migrating from 2.x to 5.x and all my old code is around javax.jdo.spi.PersistenceCapable(types casting from object type etc). But now when I enhanced my classes using latest version, I can
|
By
mayank.chawla@...
·
#209
·
|
|
Re: To set length of Datanucleus db2 column of type CLOB to 1M
Changing code back to some ancient version on a whim is not an option in a responsible software project. Facts must be provided first, as stated above, that is the prerequisite.
Changing code back to some ancient version on a whim is not an option in a responsible software project. Facts must be provided first, as stated above, that is the prerequisite.
|
By
Andy
·
#208
·
|
|
Re: To set length of Datanucleus db2 column of type CLOB to 1M
Thanks for your reply, I was moved to another task so couldn't look around this.
You mean, you have a field MYFIELD (with col name MYCOL) of some type that is mapped to BLOB? and if you don't bother
Thanks for your reply, I was moved to another task so couldn't look around this.
You mean, you have a field MYFIELD (with col name MYCOL) of some type that is mapped to BLOB? and if you don't bother
|
By
mayank.chawla@...
·
#207
·
|
|
Re: How to alter a column length
Thank you Andy for pointing me to the right point in the documentation.The problem arose because I forgot setting the persistence property "datanucleus.query.sql.allowAll" to true. This caused my
Thank you Andy for pointing me to the right point in the documentation.The problem arose because I forgot setting the persistence property "datanucleus.query.sql.allowAll" to true. This caused my
|
By
claudio_rosati@...
·
#206
·
|
|
Re: How to alter a column length
JDO (and JPA) don't do automatic changes to schema. They do CREATE or DELETE only. Metadata (for schema) is only ever used on a CREATE, and since you already have tables it is up to you to have the
JDO (and JPA) don't do automatic changes to schema. They do CREATE or DELETE only. Metadata (for schema) is only ever used on a CREATE, and since you already have tables it is up to you to have the
|
By
Andy
·
#205
·
Edited
|
|
How to alter a column length
Hello all,
I have defined a java class using the default attributes:
@PersistenceCapable(detachable = "true")
public class PropertyTemplate {
...
private String description;
...
}
And stared
Hello all,
I have defined a java class using the default attributes:
@PersistenceCapable(detachable = "true")
public class PropertyTemplate {
...
private String description;
...
}
And stared
|
By
claudio_rosati@...
·
#204
·
|
|
Re: To set length of Datanucleus db2 column of type CLOB to 1M
You mean, you have a field MYFIELD (with col name MYCOL) of some type that is mapped to BLOB? and if you don't bother specifying the length of the field in metadata then it picks
MYCOL
You mean, you have a field MYFIELD (with col name MYCOL) of some type that is mapped to BLOB? and if you don't bother specifying the length of the field in metadata then it picks
MYCOL
|
By
Andy
·
#203
·
|