|
JDBC Batch
5 messages
Hi, Are there any options to deactivate foreign-key constraints, then insert/update/delete table per table using batches, and then reactivate foreign-key at the commit ? I used a product with that fea
Hi, Are there any options to deactivate foreign-key constraints, then insert/update/delete table per table using batches, and then reactivate foreign-key at the commit ? I used a product with that fea
|
By
stephane
·
|
|
How do the Query/Result caches and the L1 cache work together?
2 messages
I've been encountering something I don't understand with the Query caches and the L1 cache. I've tried reading the DN docs a few times, but I am still confused by the results I am seeing. My persisten
I've been encountering something I don't understand with the Query caches and the L1 cache. I've tried reading the DN docs a few times, but I am still confused by the results I am seeing. My persisten
|
By
ebenzacar@...
·
|
|
Any way to configure "development" mode for DataNucleus to force it to reload class metadata?
3 messages
I'm working on a fairly large, slow startup legacy application in which I am slowly trying to integrate DataNucleus. I am also leveraging JRebel, which allows me to modify most classes on the fly with
I'm working on a fairly large, slow startup legacy application in which I am slowly trying to integrate DataNucleus. I am also leveraging JRebel, which allows me to modify most classes on the fly with
|
By
ebenzacar@...
·
|
|
Migration from Kodo: Any way to make it store foreign keys to later get already loaded objects from cache (for performance)?
23 messages
Hi I try to migrate a legacy application (on Kodo 3.4, develped over 10+ years). I now created all needed plugins so our very much not JDO compliant code runs. However, now that it works I have a mass
Hi I try to migrate a legacy application (on Kodo 3.4, develped over 10+ years). I now created all needed plugins so our very much not JDO compliant code runs. However, now that it works I have a mass
|
By
dosiwelldi
·
|
|
Multitenancy query result error - query cache key (bug ?)
Hi, When 2 queries with the same tenant but different tenantReaders are executed, the second one returns the result of the first one. The SQL generated is the same for the second query while it should
Hi, When 2 queries with the same tenant but different tenantReaders are executed, the second one returns the result of the first one. The SQL generated is the same for the second query while it should
|
By
stephane
·
|
|
Strange behaviour running in WIldfly 10 with EmulatedXAResource
2 messages
I'm encountering a strange behaviour for which I have not been able to pinpoint the cause and was hoping that someone could help point me in the right direction. I have an application running under JB
I'm encountering a strange behaviour for which I have not been able to pinpoint the cause and was hoping that someone could help point me in the right direction. I have an application running under JB
|
By
ebenzacar@...
·
|
|
How to configured the PersistenceManager for Bean Managed Transactions?
3 messages
I'm trying to integrate DN (JDO) into my JEE application via the JCA adapter, and configure the Persistence manager to understand BeanManagedTransactions. I am retrofitting this into existing code (fo
I'm trying to integrate DN (JDO) into my JEE application via the JCA adapter, and configure the Persistence manager to understand BeanManagedTransactions. I am retrofitting this into existing code (fo
|
By
ebenzacar@...
·
|
|
Proper configuration with the JCA connector in WIldfly
2 messages
I'm trying to integrate my instance of JBoss/Wildfly 10 with the Datanucleus JCA-JDO connector. I saw an original post for JBoss AS7 ( https://developer.jboss.org/docs/DOC-17094 ) as linked from the D
I'm trying to integrate my instance of JBoss/Wildfly 10 with the Datanucleus JCA-JDO connector. I saw an original post for JBoss AS7 ( https://developer.jboss.org/docs/DOC-17094 ) as linked from the D
|
By
ebenzacar@...
·
|
|
Any way to use JPA and JDO together easily?
3 messages
As I am migrating my legacy Kodo based application to DataNucleus, I noticed that the application uses both JDO for most persistence based interaction, however has several JPQL queries which leverage
As I am migrating my legacy Kodo based application to DataNucleus, I noticed that the application uses both JDO for most persistence based interaction, however has several JPQL queries which leverage
|
By
ebenzacar@...
·
|
|
Multitenancy disabled doesn't work (probably a bug)
Hi, The disable option doesn't work: @MultiTenant (disable = true ) In the MultiTenantHandler DN looks for disabled instead of disable attribute name. And then the disable extension is added if it's n
Hi, The disable option doesn't work: @MultiTenant (disable = true ) In the MultiTenantHandler DN looks for disabled instead of disable attribute name. And then the disable extension is added if it's n
|
By
stephane
·
|
|
Compilation error on ObjectExpression in generated Q class
2 messages
I have a javax.validation.Min annotation on an Integer field in my JDO entity @Column(allowsNull = "true") @Min(0) @Getter @Setter private Integer scale; The generated Q code for this field is this, a
I have a javax.validation.Min annotation on an Integer field in my JDO entity @Column(allowsNull = "true") @Min(0) @Getter @Setter private Integer scale; The generated Q code for this field is this, a
|
By
mwhesse@...
·
|
|
Trouble understanding how to lookup objects that have a Datastore Identity by their PK (if the PK is not identified in the model)
5 messages
I'm migrating an application that was writing with Kodo4 (JDO 2.2). Most of the objects/models use implicit datastore-identity with no fields identified in the model as the PK, but over time, develope
I'm migrating an application that was writing with Kodo4 (JDO 2.2). Most of the objects/models use implicit datastore-identity with no fields identified in the model as the PK, but over time, develope
|
By
ebenzacar@...
·
|
|
Sequence Support for MS SqlServer?
2 messages
Hi, According to the docs, there is support for Sequences for SQL Server. I see it as well in the org.datanucleus.store.rdbms.adapter.SQLServerAdapter class. However, when I configure my Model with th
Hi, According to the docs, there is support for Sequences for SQL Server. I see it as well in the org.datanucleus.store.rdbms.adapter.SQLServerAdapter class. However, when I configure my Model with th
|
By
ebenzacar@...
·
|
|
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@...
·
|
|
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@...
·
|
|
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@...
·
|
|
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@...
·
|
|
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@...
·
|
|
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@...
·
|
|
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@...
·
|