#124 - Polished Querydsl binding example for plain Spring MVC usage.

Collapsed domain model into a single class. Merged application configuration classes into a canonical Application class.

Tweaked UserInitializer to expose dedicated methods to make sure the parameter is only exposed if remote users are used.

Removed JavaScript based frontend as it was basically testing the Spring Data REST exposed API but not the data obtained through the Spring MVC controller. We're going to create a dedicated example for the Spring Data REST integration.
This commit is contained in:
Oliver Gierke
2015-07-15 20:02:45 +02:00
parent 97eefb0afc
commit bbaa53c873
15 changed files with 732 additions and 2684 deletions

View File

@@ -23,11 +23,20 @@ import org.springframework.data.repository.CrudRepository;
import com.mysema.query.types.path.StringPath;
/**
* Repository to manage {@link User}s. Also implements {@link QueryDslPredicateExecutor} to enable predicate filtering
* on Spring MVC controllers as well as {@link QuerydslBinderCustomizer} to tweak the way predicates are created for
* properties.
*
* @author Christoph Strobl
* @author Oliver Gierke
*/
public interface UserRepository extends CrudRepository<User, String>, QueryDslPredicateExecutor<User>,
QuerydslBinderCustomizer<QUser> {
public interface UserRepository
extends CrudRepository<User, String>, QueryDslPredicateExecutor<User>, QuerydslBinderCustomizer<QUser> {
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.binding.QuerydslBinderCustomizer#customize(org.springframework.data.querydsl.binding.QuerydslBindings, com.mysema.query.types.EntityPath)
*/
@Override
default public void customize(QuerydslBindings bindings, QUser root) {