Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 82581 invoked from network); 15 May 2009 21:00:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 May 2009 21:00:21 -0000 Received: (qmail 12403 invoked by uid 500); 15 May 2009 21:00:20 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 12291 invoked by uid 500); 15 May 2009 21:00:19 -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 12204 invoked by uid 99); 15 May 2009 21:00:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 21:00:08 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 21:00:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 90295234C004 for ; Fri, 15 May 2009 13:59:45 -0700 (PDT) Message-ID: <1481901653.1242421185576.JavaMail.jira@brutus> Date: Fri, 15 May 2009 13:59:45 -0700 (PDT) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12709966#action_12709966 ] Donald Woods commented on OPENJPA-1091: --------------------------------------- Also, looks like the reversemapping example never worked on Windows (at least it doesn't for 1.3.x) due to an invalid path being passed in dburl. > 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: 2.0.0 > Environment: Sun 1.5.0_16 on MacOSX > Reporter: Donald Woods > Fix For: 2.0.0 > > > 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. - You can reply to this email to add a comment to the issue online.