Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received ClassCastException while creating the persistence provider #188

Open
mseitner opened this issue Apr 30, 2013 · 2 comments
Open
Assignees
Labels
Milestone

Comments

@mseitner
Copy link

Happens with the latest version; cloned today.

Let me know if you need further details (PU, entities, etc.).

Caused by: java.lang.ClassCastException: org.batoo.jpa.parser.impl.metadata.attribute.EmbeddedAttributeMetadataImpl cannot be cast to org.batoo.jpa.parser.metadata.attribute.EmbeddedIdAttributeMetadata
at org.batoo.jpa.core.impl.model.attribute.EmbeddedAttribute.clone(EmbeddedAttribute.java:100)
at org.batoo.jpa.core.impl.model.attribute.EmbeddedAttribute.clone(EmbeddedAttribute.java:49)
at org.batoo.jpa.core.impl.model.IdentifiableTypeImpl.addAttributes(IdentifiableTypeImpl.java:204)
at org.batoo.jpa.core.impl.model.EntityTypeImpl.(EntityTypeImpl.java:192)
at org.batoo.jpa.core.impl.model.MetamodelImpl.(MetamodelImpl.java:226)
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:157)
at org.batoo.jpa.core.BatooPersistenceProvider.createEntityManagerFactory(BatooPersistenceProvider.java:105)
... 23 more

@asimarslan
Copy link
Contributor

Hi @mseitner ,

We have a community project in the source root as you will see. You can easily write a unit test using this project. You will see packages with issue names. You can clone one of these packages to reproduce the bug yo found. If you can provide such a unit test we can solve the bug in day or so.

Thanks

@mseitner
Copy link
Author

Hi @asimarslan,

Thanks for the info, I'll give it a try!

@asimarslan asimarslan added the bug label Oct 26, 2014
@asimarslan asimarslan added this to the 2.0.1.3 milestone Oct 26, 2014
@asimarslan asimarslan self-assigned this Oct 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants