|
Re: Any way to configure "development" mode for DataNucleus to force it to reload class metadata?
Thanks for the tip. I was looking for a `clearCache` or a `clearMetadata` method or something to that extent that I didn't notice the `unmanage/unload` methods.
I also found the plugin from Dan
Thanks for the tip. I was looking for a `clearCache` or a `clearMetadata` method or something to that extent that I didn't notice the `unmanage/unload` methods.
I also found the plugin from Dan
|
By
ebenzacar@...
·
#347
·
|
|
Re: Any way to configure "development" mode for DataNucleus to force it to reload class metadata?
There is a MetaDataManager for each PMF. It loads metadata when it needs to. There is a method unloadMetaDataForClass to unload a class' metadata if needing to do so.
There is also a method on
There is a MetaDataManager for each PMF. It loads metadata when it needs to. There is a method unloadMetaDataForClass to unload a class' metadata if needing to do so.
There is also a method on
|
By
Andy
·
#346
·
Edited
|
|
Any way to configure "development" mode for DataNucleus to force it to reload class metadata?
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
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
|
By
ebenzacar@...
·
#345
·
|
|
Re: Migration from Kodo: Any way to make it store foreign keys to later get already loaded objects from cache (for performance)?
Hi,
I'm running into a similar problem as you where I need to create an ugly JDOHelper.getObjectIdAsLong() hack as well due to some legacy Kodo code.
Did you get something fully functional finally?
Hi,
I'm running into a similar problem as you where I need to create an ugly JDOHelper.getObjectIdAsLong() hack as well due to some legacy Kodo code.
Did you get something fully functional finally?
|
By
ebenzacar@...
·
#344
·
|
|
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 <passignat@...>
·
#343
·
|
|
Re: Strange behaviour running in WIldfly 10 with EmulatedXAResource
You are using a JEE connection pool but are setting the resource type as "local" hence DN will try to commit the connection (since it commits local things). Your connection (JBoss JCA) then throws an
You are using a JEE connection pool but are setting the resource type as "local" hence DN will try to commit the connection (since it commits local things). Your connection (JBoss JCA) then throws an
|
By
Andy
·
#342
·
Edited
|
|
Strange behaviour running in WIldfly 10 with EmulatedXAResource
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
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
|
By
ebenzacar@...
·
#341
·
|
|
Re: How to configured the PersistenceManager for Bean Managed Transactions?
https://www.datanucleus.org/products/accessplatform_5_2/jdo/persistence.html#jboss7 says that "DataNucleus JCA adapter supports both Local and XA transaction types".
https://www.datanucleus.org/products/accessplatform_5_2/jdo/persistence.html#jboss7 says that "DataNucleus JCA adapter supports both Local and XA transaction types".
|
By
Andy
·
#340
·
|
|
Re: Proper configuration with the JCA connector in WIldfly
FYI The JCA was written by people who no longer develop DataNucleus, and is dependent on volunteers. Consequently you're pretty much on your own. Clearly JDO is just as usable outside of JCA, creating
FYI The JCA was written by people who no longer develop DataNucleus, and is dependent on volunteers. Consequently you're pretty much on your own. Clearly JDO is just as usable outside of JCA, creating
|
By
Andy
·
#339
·
Edited
|
|
Re: How to configured the PersistenceManager for Bean Managed Transactions?
As a followup question, does the JCA adapter support anything other than XATransactions?
I see the following in ra.xml:
<transaction-support>XATransaction</transaction-support>
Does it support any
As a followup question, does the JCA adapter support anything other than XATransactions?
I see the following in ra.xml:
<transaction-support>XATransaction</transaction-support>
Does it support any
|
By
ebenzacar@...
·
#338
·
|
|
How to configured the PersistenceManager for Bean Managed Transactions?
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
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
|
By
ebenzacar@...
·
#337
·
|
|
Proper configuration with the JCA connector in WIldfly
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
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
|
By
ebenzacar@...
·
#336
·
|
|
Re: Any way to use JPA and JDO together easily?
Thanks; I hadn't seen that extension.
I see that the the JDO pm allows for using JPQL but remaining within the JDO framework. Which from a consistency perspective is great. However, from a
Thanks; I hadn't seen that extension.
I see that the the JDO pm allows for using JPQL but remaining within the JDO framework. Which from a consistency perspective is great. However, from a
|
By
ebenzacar@...
·
#335
·
|
|
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 not
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 not
|
By
stephane <passignat@...>
·
#334
·
Edited
|
|
Re: Compilation error on ObjectExpression in generated Q class
Suggest that you work out what the Q class should be, get the code from here, and contribute an update.
Suggest that you work out what the Q class should be, get the code from here, and contribute an update.
|
By
Andy
·
#333
·
|
|
Compilation error on ObjectExpression in generated Q class
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,
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,
|
By
mwhesse@...
·
#332
·
|
|
Re: Any way to use JPA and JDO together easily?
Perhaps you would be better off looking at the DataNucleus (and JDO) documentation.
The JDO spec mandates being able to use JPA metadata (XML / annotations) with JDO persistence, and DataNucleus (JPA)
Perhaps you would be better off looking at the DataNucleus (and JDO) documentation.
The JDO spec mandates being able to use JPA metadata (XML / annotations) with JDO persistence, and DataNucleus (JPA)
|
By
Andy
·
#331
·
Edited
|
|
Any way to use JPA and JDO together easily?
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@...
·
#330
·
|
|
Re: Trouble understanding how to lookup objects that have a Datastore Identity by their PK (if the PK is not identified in the model)
Works perfectly. Didn't realize that the solution was that straightfoward. I had understood from the javadoc that the `theIdValue` had to be an Identity object.
Thanks,
Eric
Works perfectly. Didn't realize that the solution was that straightfoward. I had understood from the javadoc that the `theIdValue` had to be an Identity object.
Thanks,
Eric
|
By
ebenzacar@...
·
#329
·
|
|
Re: Trouble understanding how to lookup objects that have a Datastore Identity by their PK (if the PK is not identified in the model)
Use of implementation-specific classes is always a bad idea IMHO. Imagine hardcoding Kodo-specific stuff and then finding that you need to change provider some time later ...
In the same way, reliance
Use of implementation-specific classes is always a bad idea IMHO. Imagine hardcoding Kodo-specific stuff and then finding that you need to change provider some time later ...
In the same way, reliance
|
By
Andy
·
#328
·
Edited
|