Comments (3)
Forgot to mention both the User and Role classes had mapWith='neo4j'
from grails-data-mapping.
I've just checked this, findWhere is working correctly. Could you share the code with a failing "findWhere" ?
from grails-data-mapping.
So the findWhere was in spring-security plugin, below is the link and
the code.. It maybe due to the way its being accessed.. anyway that's
where I found the issue. It maybe fixed now its been awhile.. I also
saw the test for 'findWhere' so I thought it was fine..
Thanks for looking into this.
Class<?> User = dc.clazz
User.withTransaction { status ->
def user = User.findWhere((conf.userLookup.usernamePropertyName): username)
if (!user) {
log.warn "User not found: $username"
throw new UsernameNotFoundException('User not found', username)
}
Collection<GrantedAuthority> authorities = loadAuthorities(user,
username, loadRoles)
createUserDetails user, authorities
}
On Mon, Apr 23, 2012 at 10:49 AM, Stefan Armbruster
[email protected]
wrote:
I've just checked this, findWhere is working correctly. Could you share the code with a failing "findWhere" ?
Reply to this email directly or view it on GitHub:
#33 (comment)
from grails-data-mapping.
Related Issues (20)
- DetachedCriteria disjunction HOT 1
- gradlew idea fails for grails-data-mapping HOT 1
- redis-gorm: Failed to convert from type java.lang.String to type java.lang.Long HOT 1
- [MongoDB] mongoTemplate created for every domain class
- Log4j seems to be using multiple versions
- simpledb plugin creates HiLo domain even if not used.
- simpledb: how to set region endpoint ? HOT 4
- hasMany doesn't support more than 20 records HOT 3
- sqlProjection not working in criteria query
- Wrong port number in the manual
- Developer Guide Page is Down HOT 2
- Improve Neo4j GraphDB usability for Groovy/Grails
- [GORM-Neo4j] ToOne's with same class spawn loops
- [GORM-Neo4j]: No Transactional context for services exist.
- Neo4j: Date properties cant' have null values
- Dependency resolution during SimpleDB plugin install fails HOT 1
- transient property not validating HOT 2
- How to use the withCriteria results in a new withCriteria query in Grails? HOT 3
- CouchDB Support
- [CORE] concurrentlinkedhashmap-lru:1.2_jdk5 dependency : conflicts with Neo4j 1.8.1+ 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 grails-data-mapping.