[JAVA-32839] (#16266)
This commit is contained in:
parent
dad6f36a97
commit
d2bcc42f67
|
@ -6,8 +6,8 @@ import org.springframework.boot.autoconfigure.domain.EntityScan;
|
|||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableJpaRepositories("com.baeldung.jpa.modifying")
|
||||
@EntityScan("com.baeldung.jpa.modifying")
|
||||
@EnableJpaRepositories("com.baeldung.jpa.modifying.repository")
|
||||
@EntityScan("com.baeldung.jpa.modifying.model")
|
||||
public class ModifyingApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -78,9 +78,7 @@ public class Possession {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
builder.append("Possesion [id=").append(id).append(", name=").append(name).append("]");
|
||||
return builder.toString();
|
||||
return "Possession [id=" + id + ", name=" + name + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -96,9 +96,7 @@ public class User {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
builder.append("User [name=").append(name).append(", id=").append(id).append("]");
|
||||
return builder.toString();
|
||||
return "User [name=" + name + ", id=" + id + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.jpa.modifying.dao;
|
||||
package com.baeldung.jpa.modifying.repository;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
|
@ -19,7 +19,7 @@ import org.springframework.data.domain.Sort;
|
|||
import org.springframework.data.mapping.PropertyReferenceException;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.baeldung.jpa.modifying.dao.UserRepository;
|
||||
import com.baeldung.jpa.modifying.repository.UserRepository;
|
||||
import com.baeldung.jpa.modifying.model.User;
|
||||
|
||||
import jakarta.persistence.EntityManager;
|
||||
|
|
Loading…
Reference in New Issue