Commit 57f6e116 authored by wanghang's avatar wanghang

1

parent 2922bea9
pub.db.url=jdbc:mysql://192.168.222.122:3406/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
pub.db.user=root pub.db.user=root
pub.db.password=123456 pub.db.password=123456
log.db.url=jdbc:mysql://192.168.222.122:3406/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false log.db.url=jdbc:mysql://192.168.3.91:3406/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
log.db.user=root log.db.user=root
log.db.password=123456 log.db.password=123456
hana.db.url=jdbc:mysql://192.168.222.122:3406/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false hana.db.url=jdbc:mysql://192.168.3.91:3406/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
hana.db.user=root hana.db.user=root
hana.db.password=123456 hana.db.password=123456
......
...@@ -22,8 +22,9 @@ import java.math.BigDecimal; ...@@ -22,8 +22,9 @@ import java.math.BigDecimal;
@Table(name = "product") @Table(name = "product")
public class Product implements Serializable { public class Product implements Serializable {
@OneToOne(mappedBy = "product") // @OneToOne(mappedBy = "product")
private ProductDetail productDetail; @Transient
private ProductDetail productDetail;
/** /**
* 产品ID * 产品ID
......
...@@ -21,9 +21,9 @@ import java.math.BigDecimal; ...@@ -21,9 +21,9 @@ import java.math.BigDecimal;
@Table(name = "product_detail") @Table(name = "product_detail")
public class ProductDetail implements Serializable { public class ProductDetail implements Serializable {
@OneToOne // @OneToOne
@JoinColumn(name = "product_id", nullable = false) // @JoinColumn(name = "product_id", nullable = false)
private Product product; // private Product product;
/** /**
* 产品详细信息ID * 产品详细信息ID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment