Package org.springframework.data.jpa.repository

Examples of org.springframework.data.jpa.repository.JpaRepository.findOne()


            final JpaRepository repository = domainTypeBasicConfiguration.getRepository();

            final Serializable id = stringToSerializable(parameterValue, (Class<? extends Serializable>) domainTypeBasicConfiguration.getPersistentEntity().getIdProperty().getType());

            final Object entity = repository.findOne(id);

            if (attribute.isCollectionLike()) {
                final Expression<Collection> objectPath = root.get(attributeName);
                return builder.isMember(entity, objectPath);
            } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.