[ 
https://issues.apache.org/jira/browse/OPENJPA-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Linskey updated OPENJPA-428:
------------------------------------

    Attachment: OPENJPA-428-test.jar

Attached is a test case (source and compiled classes) that attempts to emulate 
this issue, but when run against OpenJPA 1.0.0, I don't see the error message.

Issue428Entity.class is enhanced in the attached jar; I also ran the test 
without the enhancer. I saw no errors in either environment.

> Confusing error message regarding "openjpa.Id"
> ----------------------------------------------
>
>                 Key: OPENJPA-428
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-428
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Vitor Rodrigues
>            Priority: Minor
>         Attachments: OPENJPA-428-test.jar
>
>
> Hi all, this bug is to report a confusing and misplaced error message. 
> Problem is described below. Feel free to request more info from me.
> When running my project with OpenJPA, I get the following error message:
> 140  INFO   [http-0.0.0.0-8080-Processor23] openjpa.Runtime - Starting 
> OpenJPA 1.0.0
> 380  INFO   [http-0.0.0.0-8080-Processor23] openjpa.jdbc.JDBC - Using 
> dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary".
> 20  WARN   [http-0.0.0.0-8080-Processor25] openjpa.Runtime - The property 
> named "openjpa.Id" was not recognized and will be ignored, although the name 
> closely matches a valid property called "openjpa.Id".
> 100  INFO   [http-0.0.0.0-8080-Processor25] openjpa.Runtime - Starting 
> OpenJPA 1.0.0
> 300  INFO   [http-0.0.0.0-8080-Processor25] openjpa.jdbc.JDBC - Using 
> dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary".
> As you can see, the two property names printed are the same, not different or 
> similar. I retyped all my @Id annotations to make sure there was no special 
> character in one of them coming from copy&paste.
> Furthermore, I was able to identify that the error message was being printed 
> only when I removed the @Id annotation from one of my classes (all the other 
> classes still have @Id).
> Here is a sample of my class without @Id annotation:
> @Entity
> @Table(name="TAX", schema="JPA_SC")
> public class Tax  {
>       
>       // Class variables  
>       protected double taxamount;
>  
>       public Tax(){
>               
>       }
>       
>       public Tax(double taxamount){
>               this.taxamount = taxamount;
>       }
> //plus getter and setter for taxamount
> }
> Regards,
> Vitor Rodrigues

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to