Comments (4)
Thank you very much for not ignoring my problem and helping me solve the problem. It works. It was my bad
from blaze-persistence.
Hi, can you please post the full stack trace?
from blaze-persistence.
Hi, can you please post the full stack trace?
Hi.
2024-04-02T15:07:01.090+05:00 ERROR [user-service,,] 8200 --- [nio-8400-exec-1] u.c.s.exception.GlobalExceptionHandler : Unknown error occurred
java.lang.ClassCastException: class com.blazebit.persistence.view.impl.metamodel.FlatViewTypeImpl cannot be cast to class com.blazebit.persistence.view.metamodel.ViewType (com.blazebit.persistence.view.impl.metamodel.FlatViewTypeImpl and com.blazebit.persistence.view.metamodel.ViewType are in unnamed module of loader 'app')
at com.blazebit.persistence.view.impl.EntityViewSettingHelper.applyViewFilters(EntityViewSettingHelper.java:298)
at com.blazebit.persistence.view.impl.EntityViewSettingHelper.apply(EntityViewSettingHelper.java:122)
at com.blazebit.persistence.view.impl.EntityViewManagerImpl.applySetting(EntityViewManagerImpl.java:1235)
at com.blazebit.persistence.spring.data.base.query.AbstractPartTreeBlazePersistenceQuery$QueryPreparer.createQuery0(AbstractPartTreeBlazePersistenceQuery.java:256)
at com.blazebit.persistence.spring.data.base.query.AbstractPartTreeBlazePersistenceQuery$QueryPreparer.createQuery(AbstractPartTreeBlazePersistenceQuery.java:226)
at com.blazebit.persistence.spring.data.base.query.AbstractPartTreeBlazePersistenceQuery$QueryPreparer.createQuery(AbstractPartTreeBlazePersistenceQuery.java:441)
at com.blazebit.persistence.spring.data.base.query.AbstractPartTreeBlazePersistenceQuery.doCreateQuery(AbstractPartTreeBlazePersistenceQuery.java:165)
from blaze-persistence.
Ok, so it seems that right now, we only support view filters on entity views that have a @IdMapping
defined, though I'm not sure if there is a good reason for this limitation.
Since you seem to want to get the count for every litigation status, you might as well annotate that getter i.e. @IdMapping CourtWarningLitigationStatus getLitigationStatus();
from blaze-persistence.
Related Issues (20)
- Repository should only allow sorting by entity and entity view attribute paths
- EntityView calls method Assert.notNull(Object object) that was removed in SpringFramework 6.1.x HOT 6
- saveFull throws exception on entity without mutable attributes HOT 2
- EntityViewAwareMappingJackson2HttpMessageConverter doesn't use Spring Boot's ObjectMapper
- Collection insert broken on Hibernate 6.4.2+
- Support for HATEOAS RepresentationModel link relation naming HOT 2
- conversion of LocalDate to entityview is failing HOT 8
- Support for javax/jakarta.validation in entity views HOT 4
- Entity view collection not respecting hibernate's OrderColumn
- Query annotations for EntityViews in EntityViewRepository does not work HOT 3
- SQL Server Dialect should use varchar(max) instead of varchar
- Limit annotation with multiple count queries from Mapping with SIZE broken HOT 2
- Limit Annotation with FetchStrategy.SUBSELECT and Lateral Join support issues HOT 4
- Spring Boot error with PUT operation and Entity View
- Deserializing EntityViews with jackson in Springboot yields null instead of an EntityView HOT 2
- By default, when using a "LIKE" query, the "ESCAPE" string is automatically concatenated. HOT 3
- Compilation error in generated static entity view metamodel in case of singular Map
- unknown ClassCastException HOT 11
- Hibernate Entity containing elementcollection of embeddables having embeddable crashes in HibernateJpaProvider HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blaze-persistence.