[JAVA-32839] (#16266)

This commit is contained in:
panos-kakos 2024-04-01 23:18:07 +03:00 committed by GitHub
parent dad6f36a97
commit d2bcc42f67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 10 deletions

View File

@ -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) {

View File

@ -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 + "]";
}
}

View File

@ -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

View File

@ -1,4 +1,4 @@
package com.baeldung.jpa.modifying.dao;
package com.baeldung.jpa.modifying.repository;
import java.time.LocalDate;
import java.util.List;

View File

@ -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;