--- Rolf Schumacher schrieb am Mi, 25.3.2009:
> Von: Rolf Schumacher
> Betreff: has not been enhanced
> An: users@openjpa.apache.org
> Datum: Mittwoch, 25. März 2009, 1:34
> I'm working successfully on my first
> jpa project,
> using netbeans, maven and openjpa.
> p
on: Rolf Schumacher
> Betreff: Re: has not been enhanced
> An: users@openjpa.apache.org
> Datum: Mittwoch, 25. März 2009, 18:23
> Thank you, Kevin
>
> took only a quarter to understand (if I did). I like short
> explanations.
>
> Let me repeat:
>
> - enhanced class
gt;> I mentioned running openjpa:enhance
> >> the Java stackdump you can find here:
> http://apache.pastebin.com/m2da3ff7d
> >>
> >>
> >>
> >> Rick Curtis wrote:
> >>
> >>> Can we get some more info? Your persistence.xml fi
t;>>
>> actual error message would be a good start.
>>
>>> -Rick
>>>
>>>
>>> I'm working successfully on my first jpa project,
>>> using netbeans, maven and openjpa.
>>>
>>> Now I added another entity class
generator from the pull
> > down menu of a package "New/Entity Classes from Database ..."
> >
> > It generated two entity classes because the key has multiple colums:
> > Entity and EntityPK.
> >
> > When I built the project again I get the error:
>
ass by applying the generator from the pull
> down menu of a package "New/Entity Classes from Database ..."
>
> It generated two entity classes because the key has multiple colums:
> Entity and EntityPK.
>
> When I built the project again I get the error:
>
> &quo
of a package "New/Entity Classes from Database ..."
It generated two entity classes because the key has multiple colums:
Entity and EntityPK.
When I built the project again I get the error:
"The type "class EntityPK" has not been enhanced."
And the build stops.
colums:
Entity and EntityPK.
When I built the project again I get the error:
"The type "class EntityPK" has not been enhanced."
And the build stops.
I looked in the documentation for "enhancement" and found it to be an
important subject but was not able to understa
ktrace:
>
> testGetCurrentQuestionnaire
> (se.databyran.prosang.questionnaire.jpa.NamedQueryTest) Time
> elapsed: 0.712 sec <<< ERROR!
>
> org.apache.openjpa.persistence.ArgumentException: The type "class
> se.databyran.prosang.questionnaire.HealthQuestionnaire" has not been
> enhanced.
>
stacktrace:
testGetCurrentQuestionnaire
(se.databyran.prosang.questionnaire.jpa.NamedQueryTest) Time
elapsed: 0.712 sec <<< ERROR!
org.apache.openjpa.persistence.ArgumentException: The type "class
se.databyran.prosang.questionnaire.HealthQuestionnaire" has no
> the model I have been working on setting up OpenJPA for the unit
> > tests in that project as well. When the unit tests are run they fail
> > with the following exception from OpenJPA:
> >
> >
> > org.apache.openjpa.persistence.ArgumentException: The type "class
&
etc. with the unit tests in
> the model I have been working on setting up OpenJPA for the unit
> tests in that project as well. When the unit tests are run they fail
> with the following exception from OpenJPA:
>
>
> org.apache.openjpa.persistence.ArgumentException: The type "
he model I have been working on setting up OpenJPA for the unit
tests in that project as well. When the unit tests are run they fail
with the following exception from OpenJPA:
org.apache.openjpa.persistence.ArgumentException: The type "class
se.databyran.prosang.questionnaire.Qu
t; > > > > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > > > > > 1067475> [0 ms] spent
> > > > > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > > > > > 9716945> executing stmnt 21658130 CREATE TABLE ProductInst
openjpa.jdbc.SQL - > > > > 9716945> [0 ms] spent
> > > > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > > > > 32486590> executing stmnt 2830910 CREATE TABLE
> Product_ProductInstance
> > > > > (Product_id INTEGER, mProductIns
ER, mProductInstances_id INTEGER)
> > > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > > > 32486590> [0 ms] spent
> > > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > > > 7858936> executing stmnt 30983464 CREATE INDEX
> > > > I_TTRBDVL_MPRODUCTINSTANCE ON Attr
58936> [0 ms] spent
> > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > > 10127976> executing stmnt 14900151 CREATE INDEX I_PRDCTNC_ELEMENT ON
> > > Product_ProductInstance (mProductInstances_id)
> > > 454 openjpa TRACE [main] openjpa.jdbc.SQL - &
INDEX I_PRDCTNC_ELEMENT ON
> > Product_ProductInstance (mProductInstances_id)
> > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > 10127976> [0 ms] spent
> > 454 openjpa TRACE [main] openjpa.jdbc.SQL - > 17010151> executing stmnt 32826737 CREAT
ctInstances_id)
> 454 openjpa TRACE [main] openjpa.jdbc.SQL - 10127976> [0 ms] spent
> 454 openjpa TRACE [main] openjpa.jdbc.SQL - 17010151> executing stmnt 32826737 CREATE INDEX I_PRDCTNC_PRODUCT_ID
> ON Product_ProductInstance (Product_id)
> 454 openjpa TRACE [main] openjpa.jd
in thread "main"
org.apache.openjpa.persistence.ArgumentException: The type "class
com.daisytechnologies.jpatest.ProductInstance" has not been enhanced.
at
org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1631)
at
org.apache.openjpa.meta.C
20 matches
Mail list logo