openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wendyLG <wendy.gibb...@thecitysecret.com>
Subject Re: beans, Enitiy annotation and bytcode enhancement
Date Fri, 06 Aug 2010 13:05:04 GMT

the exception is:

 An error occurred while parsing the query filter "select model from Groups
model order by model.id". Error message: The name "Groups" is not a
recognized entity or identifier. Perhaps you meant LcwGroup, which is a
close match. Known entity names: [Brandsponsor, ..., LcwGroup]

the persistence.xml:

<persistence-unit name="LCWCommonPU"
		transaction-type="RESOURCE_LOCAL">
		<provider>
			org.apache.openjpa.persistence.PersistenceProviderImpl
		</provider>
		<class>com.diffordsguide.lcw.jpa.Brandsponsor</class>
		<class>com.diffordsguide.lcw.jpa.District</class>		
		<class>com.diffordsguide.lcw.jpa.Event</class>
		<class>com.diffordsguide.lcw.jpa.LcwGroup</class>
		<class>com.diffordsguide.lcw.jpa.GroupEvent</class>
		<class>com.diffordsguide.lcw.jpa.Eventsponsorordered</class>
		<class>com.diffordsguide.lcw.jpa.Eventspeakerordered</class>		
		<class>com.diffordsguide.lcw.jpa.Brandsponsorimageordered</class>		
		<class>com.diffordsguide.lcw.jpa.Generalimage</class>
		<class>com.diffordsguide.lcw.jpa.Eventtime</class>
		<class>com.diffordsguide.lcw.jpa.Eventtype</class>					
		<class>com.diffordsguide.lcw.jpa.Speaker</class>
		<properties>
			<property name="openjpa.ConnectionDriverName"
				value="com.mysql.jdbc.Driver" />
			<property name="openjpa.ConnectionURL"
				value="jdbc:mysql://localhost:3306/lcw" />
			<property name="openjpa.ConnectionUserName" value="..." />
			<property name="openjpa.ConnectionPassword" value="..." />
			<property name="openjpa.Log" value="SQL=TRACE"/>
			<property name="openjpa.jdbc.UpdateManager" value="operation-order"/>
			
		</properties>
		
	</persistence-unit>

-- 
View this message in context: http://openjpa.208410.n2.nabble.com/beans-Enitiy-annotation-and-bytcode-enhancement-tp5380244p5380487.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Mime
View raw message