|
Re: JPA schema creation : column name capitalized
All databases have default capitalisations, and a set of capitalisations that they support. The log tells you what they are and what is chosen. Docs tell you more
All databases have default capitalisations, and a set of capitalisations that they support. The log tells you what they are and what is chosen. Docs tell you more
|
By
Andy
·
#123
·
|
|
JPA native query parsing
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
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
|
By
passignat@...
·
#122
·
|
|
JPA schema creation : column name capitalized
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@...
·
#121
·
|
|
JPA schema creation : Unique index on foreign-keys
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
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
|
By
passignat@...
·
#120
·
|
|
Re: One Model mapped on several database type (JPA)
That's a little bit more tricky.
I would say metadata are loaded as follow (you may know it already):
class files and persistence.xml
orm (ex: orm-h2.xml) file mentioned in the
That's a little bit more tricky.
I would say metadata are loaded as follow (you may know it already):
class files and persistence.xml
orm (ex: orm-h2.xml) file mentioned in the
|
By
passignat@...
·
#119
·
|
|
Re: One Model mapped on several database type (JPA)
You mean the `orm.xml` that is specified in the JPA spec as the default ORM file? (and hence always processed if found, regardless of whether the user included it in persistence.xml). And then the
You mean the `orm.xml` that is specified in the JPA spec as the default ORM file? (and hence always processed if found, regardless of whether the user included it in persistence.xml). And then the
|
By
Andy
·
#118
·
Edited
|
|
Re: One Model mapped on several database type (JPA)
It seems there are overriding rules, extending the JPA spec and I haven't seen it in DN doc.
I have a annotation in classes, a persistence.xml, an orm.xml and an orm-h2.xml.
When I load the
It seems there are overriding rules, extending the JPA spec and I haven't seen it in DN doc.
I have a annotation in classes, a persistence.xml, an orm.xml and an orm-h2.xml.
When I load the
|
By
passignat@...
·
#117
·
|
|
Re: One Model mapped on several database type (JPA)
So if you're using JPA then you don't use that property ... since it is not mentioned in the JPA docs.
Create a new persistence unit per database. Just reference the "orm" file that is needed for that
So if you're using JPA then you don't use that property ... since it is not mentioned in the JPA docs.
Create a new persistence unit per database. Just reference the "orm" file that is needed for that
|
By
Andy
·
#116
·
|
|
Re: One Model mapped on several database type (JPA)
I'm trying but I can't make it works. I'm using JPA.
I added a package-h2.orm at the root of the project.
With the option javax.jdo.option.Mapping, DN log a warning property not supported
With the
I'm trying but I can't make it works. I'm using JPA.
I added a package-h2.orm at the root of the project.
With the option javax.jdo.option.Mapping, DN log a warning property not supported
With the
|
By
passignat@...
·
#115
·
|
|
Re: One Model mapped on several database type (JPA)
The ORM file is chosen based on the persistence property javax.jdo.option.Mapping, as per the JDO spec.
The ORM file is chosen based on the persistence property javax.jdo.option.Mapping, as per the JDO spec.
|
By
Andy
·
#114
·
|
|
One Model mapped on several database type (JPA)
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
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
|
By
passignat@...
·
#113
·
|
|
Re: Possible optimization when query candidate is a class with no base class
I tested the dontRestrictDiscriminator option but unfortunately it applies regardless of whether the class has a table (new-table in the meta data) or just uses the table of a class in its inheritance
I tested the dontRestrictDiscriminator option but unfortunately it applies regardless of whether the class has a table (new-table in the meta data) or just uses the table of a class in its inheritance
|
By
Page bloom
·
#112
·
|
|
Re: Possible optimization when query candidate is a class with no base class
In regard to the reference you gave:
This appears that it would affect all queries with any candidate class whereas I definitely still need discriminators in the case where the candidate class is
In regard to the reference you gave:
This appears that it would affect all queries with any candidate class whereas I definitely still need discriminators in the case where the candidate class is
|
By
Page bloom
·
#111
·
Edited
|
|
Re: Possible optimization when query candidate is a class with no base class
On Fri, Jul 19, 2019 at 03:16 AM, Andy wrote:
If a user was sharing a table for multiple things (or only some of the records applicable to DN usage) then they clearly would not want to include the
On Fri, Jul 19, 2019 at 03:16 AM, Andy wrote:
If a user was sharing a table for multiple things (or only some of the records applicable to DN usage) then they clearly would not want to include the
|
By
Page bloom
·
#110
·
|
|
Re: Possible optimization when query candidate is a class with no base class
Perhaps if you look at http://www.datanucleus.org:15080/products/accessplatform_5_2/jdo/query.html#jdoql_candidate in particular the second "info" point. It specifies a query extension to not add a
Perhaps if you look at http://www.datanucleus.org:15080/products/accessplatform_5_2/jdo/query.html#jdoql_candidate in particular the second "info" point. It specifies a query extension to not add a
|
By
Andy
·
#109
·
Edited
|
|
Possible optimization when query candidate is a class with no base class
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
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
|
By
Page bloom
·
#108
·
|
|
Re: Datanucleus 5 informix 11 Failed initialising database
Seemingly you must have fixed your problem by now, so it is assumed to be a problem in user code.
Seemingly you must have fixed your problem by now, so it is assumed to be a problem in user code.
|
By
Andy
·
#107
·
|
|
Re: Datanucleus 5 informix 11 Failed initialising database
I dont have that database so you have to debug the code yourself. As the code shows (current), that line will not (IMHO) give an
I dont have that database so you have to debug the code yourself. As the code shows (current), that line will not (IMHO) give an
|
By
Andy
·
#106
·
|
|
Datanucleus 5 informix 11 Failed initialising database
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
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
|
By
vthokonya@...
·
#105
·
|
|
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
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
|
By
Page bloom
·
#104
·
Edited
|