You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by rpalache <ra...@oracle.com> on 2009/04/19 02:51:03 UTC

Question regarding DefaultMissingInfo of MappingDefaults property.

Hi all,

Is there any relation between checking column name properties like ( column name can not be equal to database reserved word -or- column name can not be more than X characters etc.. ) and DefaultMissingInfo property of openjpa.jdbc.MappingDefaults ?

To be more specific, if Iam running openJPA against oracle DB and I mention  one of the following in my persistence.xml:

case 1: <property name="openjpa.jdbc.MappingDefaults" value="default(DefaultMissingInfo=true)"/>  or 
case 2: <property name="openjpa.jdbc.MappingDefaults" value="default(DefaultMissingInfo=false)"/> or
case 3: <property name="openjpa.jdbc.MappingDefaults" value="jpa"/> ( default)

and I have a persistence class which has a variable name "date"  like
private Date date = null;

then

in which of the above cases openJPA will replace my column "date" to something like "date0" ?

Thanks,
Ravi.
-- 
View this message in context: http://n2.nabble.com/Question-regarding-DefaultMissingInfo-of-MappingDefaults-property.-tp2657689p2657689.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Re: Question regarding DefaultMissingInfo of MappingDefaults property.

Posted by rpalache <ra...@oracle.com>.
Hi All,

Can someone please help me with my question.

Thanks,
Ravi.


rpalache wrote:
> 
> Hi all,
> 
> Is there any relation between checking column name properties like (
> column name can not be equal to database reserved word -or- column name
> can not be more than X characters etc.. ) and DefaultMissingInfo property
> of openjpa.jdbc.MappingDefaults ?
> 
> To be more specific, if Iam running openJPA against oracle DB and I
> mention  one of the following in my persistence.xml:
> 
> case 1: <property name="openjpa.jdbc.MappingDefaults"
> value="default(DefaultMissingInfo=true)"/>  or 
> case 2: <property name="openjpa.jdbc.MappingDefaults"
> value="default(DefaultMissingInfo=false)"/> or
> case 3: <property name="openjpa.jdbc.MappingDefaults" value="jpa"/> (
> default)
> 
> and I have a persistence class which has a variable name "date"  like
> private Date date = null;
> 
> then
> 
> in which of the above cases openJPA will replace my column "date" to
> something like "date0" ?
> 
> Thanks,
> Ravi.
> 

-- 
View this message in context: http://n2.nabble.com/Question-regarding-DefaultMissingInfo-of-MappingDefaults-property.-tp2657689p2668024.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.