Skip to content

Commit da80c73

Browse files
committed
Removed unused imports.
1 parent cdeded9 commit da80c73

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

spring-data-jpa-example/src/main/java/org/springframework/data/jpa/example/repository/UserRepositoryImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import javax.persistence.PersistenceContext;
77
import javax.persistence.criteria.CriteriaQuery;
88

9-
import org.springframework.beans.factory.annotation.Autowired;
109
import org.springframework.data.jpa.example.domain.User;
1110

1211

@@ -42,8 +41,6 @@ class UserRepositoryImpl implements UserRepositoryCustom {
4241
@PersistenceContext
4342
private EntityManager em;
4443

45-
46-
4744
/**
4845
* Configure the entity manager to be used.
4946
*
@@ -64,9 +61,8 @@ public void setEntityManager(EntityManager em) {
6461
public List<User> myCustomBatchOperation() {
6562

6663
CriteriaQuery<User> criteriaQuery =
67-
em.getCriteriaBuilder().createQuery(User.class);
64+
em.getCriteriaBuilder().createQuery(User.class);
6865

6966
return em.createQuery(criteriaQuery).getResultList();
7067
}
71-
7268
}

spring-data-jpa-example/src/main/java/org/springframework/data/jpa/example/repository/UserRepositoryJdbcImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.sql.SQLException;
55
import java.util.List;
66

7-
import org.springframework.beans.factory.annotation.Autowired;
87
import org.springframework.data.jpa.example.domain.User;
98
import org.springframework.jdbc.core.simple.ParameterizedRowMapper;
109
import org.springframework.jdbc.core.support.JdbcDaoSupport;

0 commit comments

Comments
 (0)