Comments (5)
actually not fixed with I add the class to hibernate... still sorting this one
out.
It happens when I try to search for everything from a GenericDao:
Search search = new Search();
search.addSort( new Sort( sortProperty, !sortAsc ) );
search.setFirstResult( query.getFrom() );
search.setMaxResults( query.getCount() );
SearchResult<T> res =_dao.searchAndCount( search );
Original comment by [email protected]
on 27 Jan 2009 at 9:23
from hibernate-generic-dao.
So, the problem came from adding a null sortProperty. adding:
if( sortProperty != null ) {
search.addSort( new Sort( sortProperty, !sortAsc ) );
}
fixed things for me.
Thought identical code worked for version 0.2...
Closing this issue is probbably fine. Or throw a more descriptive error in:
securityCheck()
thanks
ryan
Original comment by [email protected]
on 27 Jan 2009 at 10:24
from hibernate-generic-dao.
[deleted comment]
from hibernate-generic-dao.
I agree we should add a more descriptive error.
Original comment by dwolvert
on 27 Jan 2009 at 10:35
from hibernate-generic-dao.
Robust null checking has been implemented in version 0.4.2 according to the
following
rules...
*The field list may not contain null elements. A Fetch with a null property
returns
the root entity of the search.
*Null fetches are ignored.
*Null sorts are ignored. A sort with a null property sorts on the root entity
of the
search.
*Null filters are ignored. Filters with a null property refer to the root
entity of
the search.
Original comment by dwolvert
on 13 Mar 2009 at 4:19
- Changed title: Check for null values in search params
- Changed state: Fixed
from hibernate-generic-dao.
Related Issues (20)
- Entity not being saved HOT 2
- Implement MetadataUtil for JPA 2 metadata model
- JPAAnnotationMetadata only accepts direct public fields in getProps()
- Add Enumeration support to InternalUtil.convertIfNeeded()
- Adding a new feature : multiple choice field : HOT 3
- Spacialy enable hibernate-generic-dao HOT 3
- Invalid query when property is of type Class<?> HOT 1
- Generify search and searchUnique return signatures HOT 3
- Make sure we can handle boolean type properties
- MappedSuperclass missing from JPAAnnotationMetadata getProps() HOT 5
- Positional Parameters syntax in Query using JPA DAO HOT 3
- Search.count() does not work with composite id's HOT 4
- Possible conflict between GenericDAO and GenericDAOImpl HOT 5
- HibernateMetadataUtil causes memory leak when dealing with many session factories HOT 8
- Why setDistinct() return IMutableSearch instead of Search? HOT 3
- Hibernate 4 is unsupported HOT 2
- find() with dual primary key. HOT 1
- How to use second_level_cache in hibernate-generic-dao HOT 2
- JPAAnnotationMetadata uses java 6 java.lang.String.isEmpty() method. search-1.1.0.jar is incompatible with java 5 HOT 3
- Hibernate 4 Upgrade HOT 3
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 hibernate-generic-dao.