调整包结构
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package top.fjy8018.jpadatasource.entity;
|
package top.fjy8018.jpadatasource.entity.primary;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@@ -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> {
|
||||||
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
package top.fjy8018.jpadatasource.repository;
|
package top.fjy8018.jpadatasource.repository.primary;
|
||||||
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import top.fjy8018.jpadatasource.entity.Product;
|
import top.fjy8018.jpadatasource.entity.primary.Product;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author F嘉阳
|
* @author F嘉阳
|
||||||
* @date 2019-03-30 9:12
|
* @date 2019-03-30 9:12
|
||||||
*/
|
*/
|
||||||
public interface ProductRepository extends JpaRepository<Product, String> {
|
public interface ProductRepository extends JpaRepository<Product, Integer> {
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user