pull/1/head
Matt Huntington 5 years ago
parent 855f12e063
commit 56b4f074c9

@ -5,7 +5,7 @@ import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType; import javax.persistence.GenerationType;
import javax.persistence.Id; import javax.persistence.Id;
@Entity // This tells Hibernate to make a table out of this class @Entity
public class Person { public class Person {
@Id @Id
@GeneratedValue(strategy=GenerationType.AUTO) @GeneratedValue(strategy=GenerationType.AUTO)

@ -4,9 +4,6 @@ import org.springframework.data.repository.CrudRepository;
import com.generalassembly.contacts.Person; import com.generalassembly.contacts.Person;
// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository
// CRUD refers Create, Read, Update, Delete
public interface PersonRepository extends CrudRepository<Person, Integer> { public interface PersonRepository extends CrudRepository<Person, Integer> {
} }

Loading…
Cancel
Save