调整包结构

This commit is contained in:
2019-03-30 09:44:41 +08:00
parent d9f560097c
commit cd041c3c28
4 changed files with 37 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
package top.fjy8018.jpadatasource.entity.backup;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author F嘉阳
* @date 2019-03-30 9:36
*/
@Data
@Entity(name = "tb_order")
public class Order {
@Id
private Integer id;
private String orderName;
private Integer price;
}

View File

@@ -1,4 +1,4 @@
package top.fjy8018.jpadatasource.entity;
package top.fjy8018.jpadatasource.entity.primary;
import lombok.Data;

View File

@@ -0,0 +1,11 @@
package top.fjy8018.jpadatasource.repository.backup;
import org.springframework.data.jpa.repository.JpaRepository;
import top.fjy8018.jpadatasource.entity.backup.Order;
/**
* @author F嘉阳
* @date 2019-03-30 9:12
*/
public interface OrderRepository extends JpaRepository<Order, Integer> {
}

View File

@@ -1,11 +1,11 @@
package top.fjy8018.jpadatasource.repository;
package top.fjy8018.jpadatasource.repository.primary;
import org.springframework.data.jpa.repository.JpaRepository;
import top.fjy8018.jpadatasource.entity.Product;
import top.fjy8018.jpadatasource.entity.primary.Product;
/**
* @author F嘉阳
* @date 2019-03-30 9:12
*/
public interface ProductRepository extends JpaRepository<Product, String> {
public interface ProductRepository extends JpaRepository<Product, Integer> {
}