Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 39576 invoked from network); 15 Apr 2010 19:45:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Apr 2010 19:45:15 -0000 Received: (qmail 83014 invoked by uid 500); 15 Apr 2010 19:45:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 82980 invoked by uid 500); 15 Apr 2010 19:45:14 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 82972 invoked by uid 99); 15 Apr 2010 19:45:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 19:45:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 19:45:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3FJioJI025859 for ; Thu, 15 Apr 2010 15:44:50 -0400 (EDT) Message-ID: <11139352.149581271360690349.JavaMail.jira@thor> Date: Thu, 15 Apr 2010 15:44:50 -0400 (EDT) From: "Jeremy Bauer (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-1091) ReverseMappingTool fails for openjpa-examples/reversemapping sample In-Reply-To: <1101524549.1242408825677.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Bauer resolved OPENJPA-1091. ----------------------------------- Fix Version/s: 2.0.0 2.1.0 (was: 2.0.1) Resolution: Fixed The commits for OPENJPA-1605 fix the reverse mapping example on branch 2.0.x and trunk. > ReverseMappingTool fails for openjpa-examples/reversemapping sample > ------------------------------------------------------------------- > > Key: OPENJPA-1091 > URL: https://issues.apache.org/jira/browse/OPENJPA-1091 > Project: OpenJPA > Issue Type: Bug > Components: samples, tooling > Affects Versions: 1.2.1, 2.0.0-M2 > Environment: Sun 1.5.0_16 on MacOSX > Reporter: Donald Woods > Assignee: Jeremy Bauer > Priority: Critical > Fix For: 1.2.3, 1.3.0, 2.0.0, 2.1.0 > > Attachments: OPENJPA-1091-12x.diff, OPENJPA-1091.1.2.x.diff.txt > > > The openjpa-examples/reversemapping sample works on 1.3.x, but fails on trunk. > Output from 1.3.x - > 2228 none INFO [main] openjpa.Tool - ReverseMappingTool : generating classes. > 2228 none INFO [main] openjpa.MetaData - Customized name found for class "reversemapping.Airlines": will rename as "reversemapping.Airline". > 2355 none INFO [main] openjpa.MetaData - Customized name found for class "reversemapping.Cities": will rename as "reversemapping.City". > 2356 none INFO [main] openjpa.MetaData - Customized name found for class "reversemapping.Countries": will rename as "reversemapping.Country". > 2357 none INFO [main] openjpa.MetaData - Customized name found for class "reversemapping.Flightavailability": will rename as "reversemapping.Availability". > 2358 none INFO [main] openjpa.MetaData - Customized name found for class "reversemapping.Flights": will rename as "reversemapping.Flight". > 2382 none INFO [main] openjpa.MetaData - Customized name found for field "citys" in type "reversemapping.Country": will rename as "reversemapping.Country". > 2390 none INFO [main] openjpa.MetaData - Customized name found for field "availabilitys" in type "reversemapping.Flight": will rename as "reversemapping.Flight". > 2392 none INFO [main] openjpa.MetaData - Customized name found for field "airline" in type "reversemapping.Airline": will rename as "reversemapping.Airline". > 2392 none INFO [main] openjpa.MetaData - Customized name found for field "airlineFull" in type "reversemapping.Airline": will rename as "reversemapping.Airline". > 2393 none INFO [main] openjpa.MetaData - Customized name found for field "departTime" in type "reversemapping.Flight": will rename as "reversemapping.Flight". > 2393 none INFO [main] openjpa.MetaData - Customized name found for field "arriveTime" in type "reversemapping.Flight": will rename as "reversemapping.Flight". > 2393 none WARN [main] openjpa.MetaData - Column "FLIGHTS.MEAL" is type CHAR(1), but OpenJPA cannot reverse map it into a Java char because OpenJPA is currently configured to store Java chars into numeric database columns. To configure OpenJPA to store Java chars into CHAR(1) columns, set the following property: > openjpa.jdbc.DBDictionary: StoreCharsAsNumbers=false > 2399 none INFO [main] openjpa.MetaData - Table "APP.FLIGHTS_HISTORY" could not be reverse mapped. This means that the table does not have a primary key (primary keys are required to establish unique identifiers for all persistent objects) and does not match a known pattern for a table used for cross-reference or value collections. > 2399 none INFO [main] openjpa.MetaData - Table "APP.MAPS" could not be reverse mapped. This means that the table does not have a primary key (primary keys are required to establish unique identifiers for all persistent objects) and does not match a known pattern for a table used for cross-reference or value collections. > 2404 none INFO [main] openjpa.Tool - Writing generated class source code. > 2404 none INFO [main] openjpa.MetaData - Writing java code for generated type "reversemapping.Airline". > 2408 none INFO [main] openjpa.MetaData - Writing java code for generated type "reversemapping.Availability". > 2418 none INFO [main] openjpa.Enhance - Generating an application id for type "class reversemapping.Availability". > 2421 none INFO [main] openjpa.MetaData - Writing java code for generated type "reversemapping.City". > 2422 none INFO [main] openjpa.MetaData - Writing java code for generated type "reversemapping.Country". > 2423 none INFO [main] openjpa.MetaData - Writing java code for generated type "reversemapping.Flight". > 2423 none INFO [main] openjpa.Enhance - Generating an application id for type "class reversemapping.Flight". > 2424 none INFO [main] openjpa.Tool - Writing generated metadata. > 2440 none INFO [main] openjpa.MetaData - Writing to file "orm.xml". > 2571 none INFO [main] openjpa.MetaData - Writing class "reversemapping.Airline". > 2579 none INFO [main] openjpa.MetaData - Writing class "reversemapping.Availability". > 2582 none INFO [main] openjpa.MetaData - Writing class "reversemapping.City". > 2583 none INFO [main] openjpa.MetaData - Writing class "reversemapping.Country". > 2585 none INFO [main] openjpa.MetaData - Writing class "reversemapping.Flight". > Failing output from trunk - > 2272 none INFO [main] openjpa.Tool - ReverseMappingTool : generating classes. > 2273 none INFO [main] openjpa.MetaData - Customized name found for class "reversemapping.Airlines": will rename as "reversemapping.Airline". > 2497 none INFO [main] openjpa.MetaData - Customized name found for field "airline" in type "reversemapping.Airline": will rename as "reversemapping.Airline". > 2513 none INFO [main] openjpa.MetaData - Customized name found for field "airlineFull" in type "reversemapping.Airline": will rename as "reversemapping.Airline". > 2517 none WARN [main] openjpa.MetaData - Column "AIRLINES.MEAL" is type CHAR(1), but OpenJPA cannot reverse map it into a Java char because OpenJPA is currently configured to store Java chars into numeric database columns. To configure OpenJPA to store Java chars into CHAR(1) columns, set the following property: > openjpa.jdbc.DBDictionary: StoreCharsAsNumbers=false > 2522 none INFO [main] openjpa.MetaData - Table "SYS.AIRLINES" could not be reverse mapped. This means that the table does not have a primary key (primary keys are required to establish unique identifiers for all persistent objects) and does not match a known pattern for a table used for cross-reference or value collections. > 2522 none INFO [main] openjpa.MetaData - Table "SYSIBM.AIRLINES" could not be reverse mapped. This means that the table does not have a primary key (primary keys are required to establish unique identifiers for all persistent objects) and does not match a known pattern for a table used for cross-reference or value collections. > 2526 none INFO [main] openjpa.Tool - Writing generated class source code. > 2526 none INFO [main] openjpa.MetaData - Writing java code for generated type "reversemapping.Airline". > 2531 none INFO [main] openjpa.Tool - Writing generated metadata. > 2550 none INFO [main] openjpa.MetaData - Writing to file "orm.xml". > 2567 none INFO [main] openjpa.MetaData - Writing class "reversemapping.Airline". > /Users/drwoods/openjpa/trunk/openjpa-integration/examples/target/examples/apache-openjpa-2.0.0-SNAPSHOT/examples/reversemapping/Main.java:52: cannot find symbol > symbol : class Availability > location: class reversemapping.Main > List schedule = (List) > ^ > . . . -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira