Closed pimuzzo closed 6 years ago
Hi @pimuzzo ,
Can you show me the used repository class and repository method call that generates this exception?
@pimuzzo , did you solve your issue?
Not yet, I'll try to debug it better and write a test, if you want we can close it for now, and I'll open again if necessary
@pimuzzo , ok, reopen when ready ;)
Well, I fixed it!!!
Sorry if I am late.
I've this situation:
first @Entity
public class SubscriptionMetadata extends MetadataEntity
second @Entity
public class CustomerMetadata extends MetadataEntity
a @MappedSuperclass
public abstract class MetadataEntity extends BaseEntityId
And the repository was:
public interface MetadataRepository extends JpaRepository<MetadataEntity, Integer>
{
CustomerMetadata findByCompanyAndUser( Company company, User user );
SubscriptionMetadata findBySubscription( Subscription subscription );
}
And to make it works I've splitted it in 2 repositories SubscriptionMetadataRepository
and CustomerMetadataRepository
.
Thanks for your hint to watch the repositories ;)
Ok thanks for the feedback :+1:
Hi, I am using
1.11.03
and I have the spring configuration in xml in this way:I have some classes annotated with
@MappedSuperclass
and I have this issue: