openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans J. Prueller" <hans.pruel...@gmx.net>
Subject Re: Duplicate query
Date Tue, 17 Apr 2007 19:30:54 GMT
Jacek,

it took some time but finally I can send to the TRACE. As it is rather
long I'll paste it below. Additional information:

- there is NO orm.xml
- there is only a persistence.xml (I will paste it also below)
- the persistent pojo class is derived from a common base class and
implements some other interface - nothing special about it (I will paste
it too)

so: expect some LOC to follow ;-)

=========================
THE TRACE
=========================
308  lbsims  INFO   [RMI TCP Connection(7)-127.0.1.1] openjpa.Runtime -
Starting OpenJPA 0.9.7-incubating-SNAPSHOT
311  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.Runtime -
Properties: openjpa.EntityManagerFactory: default
openjpa.DataCache: false
openjpa.MetaDataFactory: jpa(Types=com.lbslogics.ims.model.PositionLog)
openjpa.InverseManager: false
openjpa.ReadLockLevel: read
openjpa.jdbc.SubclassFetchMode: join
openjpa.DataCacheManager: default
openjpa.ConnectionFactoryName: jdbc_lbsims
openjpa.jdbc.UpdateManager: default
openjpa.jdbc.SynchronizeMappings: false
openjpa.NontransactionalRead: true
openjpa.QueryCompilationCache: true
openjpa.MaxFetchDepth: -1
openjpa.RetainState: true
openjpa.DynamicDataStructs: false
openjpa.BrokerFactory: jdbc
openjpa.WriteLockLevel: write
openjpa.ManagedRuntime:
jndi(TransactionManagerName=java:comp/UserTransaction)
openjpa.jdbc.EagerFetchMode: parallel
openjpa.RestoreState: immutable
openjpa.jdbc.SchemaFactory: dynamic
openjpa.LockManager: version
openjpa.BrokerImpl: default
openjpa.NontransactionalWrite: true
openjpa.MetaDataRepository: default
openjpa.Log: DefaultLevel=TRACE,SQL=TRACE
openjpa.jdbc.ResultSetType: forward-only
openjpa.AutoDetach: 
openjpa.ConnectionRetainMode: on-demand
openjpa.SavepointManager: in-mem
openjpa.Optimistic: true
openjpa.ConnectionFactoryMode: managed
openjpa.Sequence: table
openjpa.FetchGroups: default
openjpa.jdbc.Schemas: 
openjpa.Id: lbsims
openjpa.OrphanedKeyAction: log
openjpa.FlushBeforeQueries: true
openjpa.AutoClear: datastore
openjpa.Compatibility: default
openjpa.jdbc.LRSSize: query
openjpa.DetachState: loaded
openjpa.Multithreaded: true
openjpa.FetchBatchSize: -1
openjpa.jdbc.SQLFactory: default
openjpa.IgnoreChanges: false
javax.persistence.provider:
org.apache.openjpa.persistence.PersistenceProviderImpl
openjpa.jdbc.MappingDefaults: jpa
openjpa.TransactionMode: managed
openjpa.RetryClassRegistration: false
openjpa.jdbc.FetchDirection: forward
openjpa.ClassResolver: default
openjpa.LockTimeout: -1
openjpa.DataCacheTimeout: -1
openjpa.QueryCache: true
openjpa.jdbc.DriverDataSource: simple
openjpa.jdbc.TransactionIsolation: default
openjpa.ProxyManager: default
729  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData -
Using metadata factory
"org.apache.openjpa.persistence.jdbc.PersistenceMappingFactory@28214".
740  lbsims  INFO   [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.JDBC
- OpenJPA will now connect to the database to attempt to determine what
type of database dictionary to use.  To prevent this connection in the
future, set your openjpa.jdbc.DBDictionary configuration property to the
appropriate value for your database (see the documentation for available
values).
958  lbsims  INFO   [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.JDBC
- Using dictionary class
"org.apache.openjpa.jdbc.sql.MySQLDictionary" (MySQL
5.0.24a-Debian_9ubuntu2-log ,MySQL-AB JDBC Driver
mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19
Oct 2006) $, $Revision: 5908 $ )).
1027  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.JDBC
- catalogSeparator: .
catalogTerm: database
databaseProductName: MySQL
databaseProductVersion: 5.0.24a-Debian_9ubuntu2-log
driverName: MySQL-AB JDBC Driver
driverVersion: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48
+0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
extraNameCharacters: #@
identifierQuoteString: `
numericFunctions:
ABS,ACOS,ASIN,ATAN,ATAN2,BIT_COUNT,CEILING,COS,COT,DEGREES,EXP,FLOOR,LOG,LOG10,MAX,MIN,MOD,PI,POW,POWER,RADIANS,RAND,ROUND,SIN,SQRT,TAN,TRUNCATE
procedureTerm: PROCEDURE
schemaTerm: 
searchStringEscape: \
sqlKeywords:
AUTO_INCREMENT,BINARY,BLOB,ENUM,INFILE,LOAD,MEDIUMINT,OPTION,OUTFILE,REPLACE,SET,TEXT,UNSIGNED,ZEROFILL
stringFunctions:
ASCII,BIN,BIT_LENGTH,CHAR,CHARACTER_LENGTH,CHAR_LENGTH,CONCAT,CONCAT_WS,CONV,ELT,EXPORT_SET,FIELD,FIND_IN_SET,HEX,INSERT,INSTR,LCASE,LEFT,LENGTH,LOAD_FILE,LOCATE,LOCATE,LOWER,LPAD,LTRIM,MAKE_SET,MATCH,MID,OCT,OCTET_LENGTH,ORD,POSITION,QUOTE,REPEAT,REPLACE,REVERSE,RIGHT,RPAD,RTRIM,SOUNDEX,SPACE,STRCMP,SUBSTRING,SUBSTRING,SUBSTRING,SUBSTRING,SUBSTRING_INDEX,TRIM,UCASE,UPPER
systemFunctions:
DATABASE,USER,SYSTEM_USER,SESSION_USER,PASSWORD,ENCRYPT,LAST_INSERT_ID,VERSION
timeDateFunctions:
DAYOFWEEK,WEEKDAY,DAYOFMONTH,DAYOFYEAR,MONTH,DAYNAME,MONTHNAME,QUARTER,WEEK,YEAR,HOUR,MINUTE,SECOND,PERIOD_ADD,PERIOD_DIFF,TO_DAYS,FROM_DAYS,DATE_FORMAT,TIME_FORMAT,CURDATE,CURRENT_DATE,CURTIME,CURRENT_TIME,NOW,SYSDATE,CURRENT_TIMESTAMP,UNIX_TIMESTAMP,FROM_UNIXTIME,SEC_TO_TIME,TIME_TO_SEC
url: jdbc:mysql://localhost:3306/lbsims?autoReconnect=true
userName: root@localhost
defaultTransactionIsolation: 2
driverMajorVersion: 5
driverMinorVersion: 0
maxBinaryLiteralLength: 16777208
maxCatalogNameLength: 32
maxCharLiteralLength: 16777208
maxColumnNameLength: 64
maxColumnsInGroupBy: 64
maxColumnsInIndex: 16
maxColumnsInOrderBy: 64
maxColumnsInSelect: 256
maxColumnsInTable: 512
maxConnections: 0
maxCursorNameLength: 64
maxIndexLength: 256
maxProcedureNameLength: 0
maxRowSize: 2147483639
maxSchemaNameLength: 0
maxStatementLength: 65531
maxStatements: 0
maxTableNameLength: 64
maxTablesInSelect: 256
maxUserNameLength: 16
isCatalogAtStart: true
isReadOnly: false
nullPlusNonNullIsNull: true
nullsAreSortedAtEnd: false
nullsAreSortedAtStart: false
nullsAreSortedHigh: false
nullsAreSortedLow: true
storesLowerCaseIdentifiers: true
storesLowerCaseQuotedIdentifiers: true
storesMixedCaseIdentifiers: false
storesMixedCaseQuotedIdentifiers: false
storesUpperCaseIdentifiers: false
storesUpperCaseQuotedIdentifiers: true
supportsAlterTableWithAddColumn: true
supportsAlterTableWithDropColumn: true
supportsANSI92EntryLevelSQL: true
supportsANSI92FullSQL: false
supportsANSI92IntermediateSQL: false
supportsCatalogsInDataManipulation: true
supportsCatalogsInIndexDefinitions: true
supportsCatalogsInPrivilegeDefinitions: true
supportsCatalogsInProcedureCalls: true
supportsCatalogsInTableDefinitions: true
supportsColumnAliasing: true
supportsConvert: false
supportsCoreSQLGrammar: true
supportsCorrelatedSubqueries: true
supportsDataDefinitionAndDataManipulationTransactions: false
supportsDataManipulationTransactionsOnly: false
supportsDifferentTableCorrelationNames: true
supportsExpressionsInOrderBy: true
supportsExtendedSQLGrammar: false
supportsFullOuterJoins: false
supportsGroupBy: true
supportsGroupByBeyondSelect: true
supportsGroupByUnrelated: true
supportsIntegrityEnhancementFacility: false
supportsLikeEscapeClause: true
supportsLimitedOuterJoins: true
supportsMinimumSQLGrammar: true
supportsMixedCaseIdentifiers: false
supportsMixedCaseQuotedIdentifiers: false
supportsMultipleResultSets: false
supportsMultipleTransactions: true
supportsNonNullableColumns: true
supportsOpenCursorsAcrossCommit: false
supportsOpenCursorsAcrossRollback: false
supportsOpenStatementsAcrossCommit: false
supportsOpenStatementsAcrossRollback: false
supportsOrderByUnrelated: false
supportsOuterJoins: true
supportsPositionedDelete: false
supportsPositionedUpdate: false
supportsSchemasInDataManipulation: false
supportsSchemasInIndexDefinitions: false
supportsSchemasInPrivilegeDefinitions: false
supportsSchemasInProcedureCalls: false
supportsSchemasInTableDefinitions: false
supportsSelectForUpdate: true
supportsStoredProcedures: true
supportsSubqueriesInComparisons: true
supportsSubqueriesInExists: true
supportsSubqueriesInIns: true
supportsSubqueriesInQuantifieds: true
supportsTableCorrelationNames: true
supportsTransactions: true
supportsUnion: true
supportsUnionAll: true
usesLocalFilePerTable: false
usesLocalFiles: false
allProceduresAreCallable: false
allTablesAreSelectable: false
dataDefinitionCausesTransactionCommit: true
dataDefinitionIgnoredInTransactions: false
doesMaxRowSizeIncludeBlobs: true
supportsBatchUpdates: true
1062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.JDBC
- <t 23207466, conn 11177593> [0 ms] close
1672  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Scanning resource "META-INF/orm.xml" for persistent types.
1679  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- parsePersistentTypeNames() found
[com.lbslogics.ims.model.PositionLog].
1679  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Found 1 classes with metadata in 25 milliseconds.
2203  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing class "com.lbslogics.ims.model.PositionLog".
2203  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing package "com.lbslogics.ims.model.PositionLog".
2396  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Generating default metadata for type
"com.lbslogics.ims.model.PositionLog".
2546  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.byId".
2550  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.allForCarByTimeRange".
2553  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.matchingCID".
2558  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.matchingNoTimeCID".
2561  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.byCarTstampStopTransMovingTrans".
2564  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.byBtripId".
2568  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.byCarId".
2716  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.unhandledJumperPointsForCar".
2720  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.byBtripIdAndMetresDiff".
3123  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Processing registered persistence-capable class "class
com.lbslogics.ims.model.PositionLog".
3132  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Loading metadata for "class com.lbslogics.ims.model.PositionLog" under
mode "[META][QUERY]".
3133  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing class "com.lbslogics.ims.model.PositionLog".
3134  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing query "PositionLog.byId".
3135  lbsims  WARN   [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Found duplicate query "PositionLog.byId" in "class
com.lbslogics.ims.model.PositionLog".  Ignoring.
3372  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Parsing table generator "PositionLogGen".
3443  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Set persistence-capable superclass of
"com.lbslogics.ims.model.PositionLog" to "null".
3445  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Resolving metadata for "com.lbslogics.ims.model.PositionLog@30487164".
3445  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.businesstripId".
3446  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.carId".
3446  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.cid".
3446  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.course".
3447  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.employeeId".
3447  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.entityCreatedTstamp".
3447  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.fixType".
3447  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.id".
3447  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isDriving".
3448  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isIgnitionOn".
3448  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isJumperPoint".
3448  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isMovingTrans".
3448  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isPowerOn".
3449  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isStopTrans".
3449  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.latitude".
3449  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.longitude".
3449  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.metresCounter".
3449  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.metresDiffToPrev".
3450  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.numSat".
3450  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltDens1".
3450  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltDens2".
3450  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltSpSymm".
3450  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltWet".
3451  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltWidth".
3451  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.speedKmH".
3451  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status1".
3451  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status2".
3451  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status3".
3452  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status4".
3452  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status5".
3452  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.tachoImpulse".
3452  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.tstamp".
3452  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasAtHome".
3452  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasHomeType".
3453  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasLMT".
3467  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Preparing mapping for "com.lbslogics.ims.model.PositionLog".
3623  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.id".
3738  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "id" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3739  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.businesstripId".
3739  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "businesstripId" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3740  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.carId".
3740  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "carId" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3740  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.cid".
3748  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "cid" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3751  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.course".
3751  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "course" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3752  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.employeeId".
3752  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "employeeId" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3752  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.entityCreatedTstamp".
3753  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "entityCreatedTstamp" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3753  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.fixType".
3753  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "fixType" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3754  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isDriving".
3754  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "isDriving" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3754  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isIgnitionOn".
3755  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "isIgnitionOn" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3755  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isJumperPoint".
3755  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "isJumperPoint" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3756  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isMovingTrans".
3756  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "isMovingTrans" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3756  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isPowerOn".
3756  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "isPowerOn" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3757  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isStopTrans".
3757  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "isStopTrans" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3757  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.latitude".
3758  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "latitude" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3758  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.longitude".
3758  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "longitude" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3759  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.metresCounter".
3759  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "metresCounter" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3892  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.metresDiffToPrev".
3893  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "metresDiffToPrev" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3893  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.numSat".
3894  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "numSat" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3894  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltDens1".
3894  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "saltDens1" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3895  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltDens2".
3895  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "saltDens2" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3895  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltSpSymm".
3895  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "saltSpSymm" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3896  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltWet".
3896  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "saltWet" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3896  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltWidth".
3897  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "saltWidth" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3897  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.speedKmH".
3898  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "speedKmH" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3898  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status1".
3898  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "status1" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3898  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status2".
3899  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "status2" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3899  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status3".
3899  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "status3" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3900  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status4".
3900  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "status4" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3900  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status5".
3900  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "status5" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy".
3901  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.tachoImpulse".
3901  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "tachoImpulse" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3901  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.tstamp".
3902  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "tstamp" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3908  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasAtHome".
3908  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "wasAtHome" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3908  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasHomeType".
3909  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "wasHomeType" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
3909  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasLMT".
3910  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       "wasLMT" has mapping strategy
"org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy".
4050  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- "com.lbslogics.ims.model.PositionLog<discriminator>" has mapping
strategy "none".
4058  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- "com.lbslogics.ims.model.PositionLog<version>" has mapping strategy
"none".
4058  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Resolving mapping for "com.lbslogics.ims.model.PositionLog@30487164".
4059  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- "com.lbslogics.ims.model.PositionLog" has mapping strategy "full".
4059  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
- Initializing mapping for
"com.lbslogics.ims.model.PositionLog@30487164".
4061  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.businesstripId".
4061  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.carId".
4062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.cid".
4062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.course".
4062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.employeeId".
4062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.entityCreatedTstamp".
4062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.fixType".
4062  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.id".
4063  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isDriving".
4063  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isIgnitionOn".
4063  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isJumperPoint".
4063  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isMovingTrans".
4063  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isPowerOn".
4064  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.isStopTrans".
4064  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.latitude".
4064  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.longitude".
4064  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.metresCounter".
4064  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.metresDiffToPrev".
4064  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.numSat".
4065  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltDens1".
4065  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltDens2".
4065  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltSpSymm".
4065  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltWet".
4066  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.saltWidth".
4066  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.speedKmH".
4066  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status1".
4066  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status2".
4066  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status3".
4067  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status4".
4067  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.status5".
4067  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.tachoImpulse".
4067  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.tstamp".
4067  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasAtHome".
4067  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasHomeType".
4068  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.MetaData
-       Resolving field
"com.lbslogics.ims.model.PositionLog@30487164.wasLMT".
4482  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.Query -
Executing query: [SELECT x FROM PositionLog x WHERE x.id = :id] with
parameters: {id=-21216258}
4801  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.SQL
- <t 23207466, conn 11177593> executing prepstmnt 2099870706 SELECT
t0.id_, t0.BusinessTripBean_Id_, t0.CarBean_Id_, t0.cid_, t0.course_,
t0.employeeid_, t0.entityCreatedTstamp_, t0.fixType_, t0.isDriving_,
t0.isIgnitionOn_, t0.isJumperPoint_, t0.isMovingTrans_, t0.isPowerOn_,
t0.isStopTrans_, t0.latitude_, t0.longitude_, t0.metresCounter_,
t0.metresDiffToPrev_, t0.numSat_, t0.saltDens1_, t0.saltDens2_,
t0.saltSpSymm_, t0.saltWet_, t0.saltWidth_, t0.speedKmH_, t0.status1_,
t0.status2_, t0.status3_, t0.status4_, t0.status5_, t0.tachoImpulse_,
t0.tstamp_, t0.wasAtHome_, t0.wasHomeType_, t0.wasLMT_ FROM
PositionLogBean_ t0 WHERE (t0.id_ = ?) [params=(long) -21216258]
4804  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.SQL
- <t 23207466, conn 11177593> [3 ms] spent
5060  lbsims  TRACE  [RMI TCP Connection(7)-127.0.1.1] openjpa.jdbc.JDBC
- <t 23207466, conn 11177593> [1 ms] close


========================
the PERSISTENCE.XML
========================

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
	<persistence-unit name="lbsims" transaction-type="JTA">
		<provider>
			org.apache.openjpa.persistence.PersistenceProviderImpl
		</provider>
		<jta-data-source>jdbc_test</jta-data-source>
		<class>com.lbslogics.ims.model.PositionLog</class>
		<properties>
			<property name="openjpa.ConnectionFactoryMode" value="managed" />
			<property name="openjpa.TransactionMode" value="managed"/>
			<property name="openjpa.Log" value="DefaultLevel=TRACE,SQL=TRACE" />
			<property name="openjpa.Multithreaded" value="true"/>
			<property name="openjpa.ManagedRuntime"
				value="jndi(TransactionManagerName=java:comp/UserTransaction)" />
		</properties>
	</persistence-unit>
</persistence>


====================================
the PositionLog CLASS (SHORTENED)
====================================
package com.lbslogics.ims.model;

@javax.persistence.Entity
@Table(name = "PositionLogBean_")
@NamedQueries( {
		@NamedQuery(name = "PositionLog.byId", query = "SELECT x FROM
PositionLog x WHERE x.id = :id"),
		//SOME OTHER NAMED QUERIES WITH PROVEN DIFFERENT NAMES HERE
                 })
public class PositionLog extends AbstractPersistentModelObject
implements
		ModelObject {

	// CONSTANTS
	public static final String OBJREF = "ims/PositionLog";

	private static final Logger logger = java.util.logging.Logger
			.getLogger(PositionLog.class.getName());

	// FINDER METHODS

	public static PositionLog findById(EntityManager em, Long plId) {
		Query q = em.createNamedQuery("PositionLog.byId");
		q.setParameter("id", plId);

		try {
			return (PositionLog) q.getSingleResult();
		} catch (javax.persistence.NoResultException e) {
			logger.finest("findById: did not find result for id=" + plId);
			return null;
		}
	}

        // SOME OTHER METHODS HERE

	// IMPL

	@Id
	@Column(name = "id_")
	@GeneratedValue(strategy = GenerationType.TABLE, generator =
"PositionLogGen")
	@TableGenerator(name = "PositionLogGen", table = "SEQ_IDGEN",
pkColumnValue = "PositionLog")
	private Long id;

	@Basic
	@Column(name = "cid_")
	private String cid;

	@Basic
	@Column(name = "entityCreatedTstamp_")
	private Long entityCreatedTstamp;

         //SOME MORE @Basic attributes here...

	// POJO Model Object Entity Implementation

	private PositionLog() {
		setEntityCreatedTstamp(Long.valueOf(System.currentTimeMillis()));
	}

	/**
	 * default "constructing method" that initializes attribute values, a
	 * forced-parametrized constructor cannot be used as a
no-arg-constructor is
	 * required by JPA.
	 */
	public PositionLog(final String cid) {
		this();

		setCid(cid);
		
                 ....
	}

	// IMPLEMENTATION AND LOTS OF GETTERS / SETTERS FOLLOW HERE

}



Am Montag, den 16.04.2007, 22:27 +0200 schrieb Jacek Laskowski:

> On 4/16/07, Jacek Laskowski <jacek@laskowski.net.pl> wrote:
> 
> > >  2180  lbsims  WARN   [RMI TCP Connection(3)-127.0.1.1] openjpa.MetaData -
> > > Found duplicate query "PositionLog.byId" in "class
> > > com.lbslogics.ims.model.PositionLog".  Ignoring.
> >
> > Could you show the PositionLog entity and the corresponding
> > persistence.xml file with other referenced files (like orm.xml and
> > other mapping files if such exist)?
> 
> Could you also rise log level to TRACE:
> 
> <property name="openjpa.Log" value="DefaultLevel=TRACE,SQL=TRACE" />
> 
> to see what (Native)NamedQuery has already been parsed and when? Add
> it to the persistence.xml of yours.
> 
> Jacek
> 

Mime
View raw message