cbolduc/simplejpa — comment on commit b302e1d4d109c5616416a29e26c83e944f36c257
File:  line 0
By cbolduc:

Hi Christian,

Sorry, I was not able to reproduce your bug. Thus, I send you my test
code for your case and I am interested to see if it works for you.
Otherwise, may you give me more context about this error ?

Thanks.

Claude

P.S. You will have to provide your credentials for SimpleDB in the
resources files of the test code. To execute it, just 'mvn test' it.

On Mon, Jan 30, 2012 at 8:18 AM, Christian Tellefsen

wrote:
> Hi,
>
> I get an exception in my code after this commit. My code:
>
> @Entity
> @EntityListeners(SomeEntityListener.class)
> public class SomeEntity extends TimestampedEntity {
> ...
>
> So, I think this commit may have introduced some unintended side effect. Stack trace:
>
> javax.persistence.PersistenceException: The class com.somecompany.SomeEntity is not an entity.
> at com.spaceprogram.simplejpa.EntityManagerSimpleJPA.ensureClassIsEntity(EntityManagerSimpleJPA.java:183)
> at com.spaceprogram.simplejpa.query.QueryImpl.init(QueryImpl.java:352)
> at com.spaceprogram.simplejpa.query.QueryImpl.(QueryImpl.java:91)
> at com.spaceprogram.simplejpa.EntityManagerSimpleJPA.createQuery(EntityManagerSimpleJPA.java:492)
> at ... (my code)
>
> Cheers,
> Christian Tellefsen
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/cbolduc/simplejpa/commit/b302e1d4d109c5616416a29e26c83e944f36c257#commitcomment-914138