|
How to do range query with Datanucleus/JDO?
2 messages
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` class to
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` class to
|
By
qquantum@...
·
|
|
Converter not working with datanucleus-mongodb
5 messages
When persisting this model with datanucleus-mongodb @PersistenceCapable public class Room implements Serializable { @PrimaryKey @Persistent(valueStrategy= IdGeneratorStrategy.IDENTITY) private String
When persisting this model with datanucleus-mongodb @PersistenceCapable public class Room implements Serializable { @PrimaryKey @Persistent(valueStrategy= IdGeneratorStrategy.IDENTITY) private String
|
By
qquantum@...
·
|
|
DyadicExpression "OR" compiles into nested SQL expressions which exhausts the stack of the underlying DB
3 messages
Hi everyone, I use JDOQL with Datanucleus 4 and Spanner as backend. I use Spanner as a backend for some time and it works mostly fine. But recently I hit a problem when there are too many OR statement
Hi everyone, I use JDOQL with Datanucleus 4 and Spanner as backend. I use Spanner as a backend for some time and it works mostly fine. But recently I hit a problem when there are too many OR statement
|
By
yunus@...
·
|
|
How to use datanucleus.CurrentUserProvider?
6 messages
According to JDO Mapping Guide ( https://www.datanucleus.org/products/accessplatform_5_1/jdo/mapping.html#_defining_the_current_user ) , to support auditing @CreateUser, we could define an implementat
According to JDO Mapping Guide ( https://www.datanucleus.org/products/accessplatform_5_1/jdo/mapping.html#_defining_the_current_user ) , to support auditing @CreateUser, we could define an implementat
|
By
1919wang@...
·
|
|
datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or JPQL currently
13 messages
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@...
·
|
|
DN website
2 messages
Currently unavailable due to change of ISP. Use downloadable docs from sourceforge. Hopefully back soon
Currently unavailable due to change of ISP. Use downloadable docs from sourceforge. Hopefully back soon
|
By
Andy
·
|
|
MYSQL 8 Index/candidate part #0
Hi, I faced issues to use the SchemaTool with MySQL 8 failing to upgrade the schema or to recreate it from scratch, with the error "Index/candidate part #0". In a debug session of the SchemaTool, I ob
Hi, I faced issues to use the SchemaTool with MySQL 8 failing to upgrade the schema or to recreate it from scratch, with the error "Index/candidate part #0". In a debug session of the SchemaTool, I ob
|
By
passignat@...
·
|
|
Table not found in MySQL8
3 messages
Hi, I'm facing some issue to use a fresh new mysql8 server. DN doesn't find the tables because of case sensitivity. Tables are created in lowercase while DN search for upper case. Debugging schema int
Hi, I'm facing some issue to use a fresh new mysql8 server. DN doesn't find the tables because of case sensitivity. Tables are created in lowercase while DN search for upper case. Debugging schema int
|
By
passignat@...
·
|
|
Add default value to column
3 messages
I would like to add the default value of a field to the database column definition, in order to have the SchemaTool generating it in the database. I tried like in the doc, but without success: <mappin
I would like to add the default value of a field to the database column definition, in order to have the SchemaTool generating it in the database. I tried like in the doc, but without success: <mappin
|
By
passignat@...
·
|
|
Envers-style Auditing in DataNucleus?
4 messages
I'm evaluating DataNucleus as a JDO implementation vs a Hibernate JPA implementation. On of the big selling points that Hibernate provides is the Hibernate-Envers ( https://hibernate.org/orm/envers/ )
I'm evaluating DataNucleus as a JDO implementation vs a Hibernate JPA implementation. On of the big selling points that Hibernate provides is the Hibernate-Envers ( https://hibernate.org/orm/envers/ )
|
By
ebenzacar@...
·
|
|
JPA @ManyToMany @ForeignKey name not used
2 messages
Hi, I'm trying to specify foreign-key names. This helps to reduce the effort on db schema comparison at the end of development, to prepare the schema upgrade script. Actually it works very well on mos
Hi, I'm trying to specify foreign-key names. This helps to reduce the effort on db schema comparison at the end of development, to prepare the schema upgrade script. Actually it works very well on mos
|
By
passignat@...
·
|
|
Multi Tenancy : user belonging to several tenant
2 messages
Hi, I'm looking again at how to segment data based on user "profile". An easy to understand concept is to imagine an organisation with subsidiaries, each having departments, departments organized in t
Hi, I'm looking again at how to segment data based on user "profile". An easy to understand concept is to imagine an organisation with subsidiaries, each having departments, departments organized in t
|
By
passignat@...
·
|
|
Multi Tenancy : find fails with a NPE on DN 2.5.6
Hi, I'm testing datanucleus.TenantReadIds and receive a NullPointerException PersistenceNucleusContextImpl:getMultiTenancyReadIds line 1928 return new String[] {ec.getStringProperty(PropertyNames.PROP
Hi, I'm testing datanucleus.TenantReadIds and receive a NullPointerException PersistenceNucleusContextImpl:getMultiTenancyReadIds line 1928 return new String[] {ec.getStringProperty(PropertyNames.PROP
|
By
passignat@...
·
|
|
JPA PreUpdate fired "without" changes
5 messages
Hi, When I update an attribute with the same value (let's say I replace with an equals value), this object is made dirty. Not a big deal, but a side effect is PreUpdate callbacks are triggered, and I
Hi, When I update an attribute with the same value (let's say I replace with an equals value), this object is made dirty. Not a big deal, but a side effect is PreUpdate callbacks are triggered, and I
|
By
passignat@...
·
|
|
Error when using the jdbcType NVARCHAR with H2
8 messages
When mapping a column with java type String and using jdbcType="NVARCHAR" in the @Column annotation we receive an error that the type is not supported by our H2 datastore. We looked at the H2Adapter a
When mapping a column with java type String and using jdbcType="NVARCHAR" in the @Column annotation we receive an error that the type is not supported by our H2 datastore. We looked at the H2Adapter a
|
By
mwhesse@...
·
|
|
Multi Tenancy : find fails with a NPE on DN 2.5.6
5 messages
I'm trying to use datanucleus.TenantReadIds at the EntityManager level, setting this property entityManager.setProperty( PropertyNames. PROPERTY_MAPPING_TENANT_READ_IDS , tenant); As it doesn't seems
I'm trying to use datanucleus.TenantReadIds at the EntityManager level, setting this property entityManager.setProperty( PropertyNames. PROPERTY_MAPPING_TENANT_READ_IDS , tenant); As it doesn't seems
|
By
passignat@...
·
|
|
JPA TestCase for MultiTenancy
2 messages
Hi, As you can see on other topics, I'm facing some difficulties with MultiTenancy in JPA. I haven't diagnose yet why settings are not applied but I translated the JDO TestCase to JPA. These tests doe
Hi, As you can see on other topics, I'm facing some difficulties with MultiTenancy in JPA. I haven't diagnose yet why settings are not applied but I translated the JDO TestCase to JPA. These tests doe
|
By
passignat@...
·
|
|
JPA Multitenancy delete doesn't use tenant-read-ids
3 messages
Hi, When removing an object, DN only uses TenantId, while it uses the tenant-read-ids when querying. // Tenants : John,Chris final Query query = entityManager.createQuery("select e from Element e ");
Hi, When removing an object, DN only uses TenantId, while it uses the tenant-read-ids when querying. // Tenants : John,Chris final Query query = entityManager.createQuery("select e from Element e ");
|
By
passignat@...
·
|
|
Breaking change in CLOB columns in PostgreSQL coming from DN 5.2.2
6 messages
Hi, I'm using Dependency-Track ( https://github.com/DependencyTrack/dependency-track ) with PostgreSQL, which is built on DN. Dependency-Track recently switched from DN 5.2.2 to DN 5.2.6, making data
Hi, I'm using Dependency-Track ( https://github.com/DependencyTrack/dependency-track ) with PostgreSQL, which is built on DN. Dependency-Track recently switched from DN 5.2.2 to DN 5.2.6, making data
|
By
keil@...
·
|
|
Is there a way to define a default sequence generator to use for all classes for Datastore-Identity instead of doing it on a per-class basis?
2 messages
I've been reading through the docs for using native sequences for datastore-identities (https://www.datanucleus.org/products/accessplatform_5_0/jdo/mapping.html#valuegen_sequence). But from what I can
I've been reading through the docs for using native sequences for datastore-identities (https://www.datanucleus.org/products/accessplatform_5_0/jdo/mapping.html#valuegen_sequence). But from what I can
|
By
ebenzacar@...
·
|