-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
90 additions
and
287 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
src/main/java/bobo/erp/entity/state/marketing/AdvertisingContent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package bobo.erp.entity.state.marketing; | ||
|
||
import com.fasterxml.jackson.annotation.JsonBackReference; | ||
|
||
import javax.persistence.*; | ||
|
||
/** | ||
* Created by bobo on 2017/12/9. | ||
*/ | ||
@Entity | ||
public class AdvertisingContent { | ||
public AdvertisingContent() { | ||
} | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.AUTO) | ||
private Integer id; | ||
|
||
private Integer areaType; //区域类型ID | ||
private Integer productType; //产品类型ID | ||
private Integer adValue; //广告投放额 | ||
|
||
@ManyToOne | ||
private AdvertisingState advertisingState; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public Integer getAreaType() { | ||
return areaType; | ||
} | ||
|
||
public void setAreaType(Integer areaType) { | ||
this.areaType = areaType; | ||
} | ||
|
||
public Integer getProductType() { | ||
return productType; | ||
} | ||
|
||
public void setProductType(Integer productType) { | ||
this.productType = productType; | ||
} | ||
|
||
public Integer getAdValue() { | ||
return adValue; | ||
} | ||
|
||
public void setAdValue(Integer adValue) { | ||
this.adValue = adValue; | ||
} | ||
|
||
@JsonBackReference | ||
public AdvertisingState getAdvertisingState() { | ||
return advertisingState; | ||
} | ||
|
||
@JsonBackReference | ||
public void setAdvertisingState(AdvertisingState advertisingState) { | ||
this.advertisingState = advertisingState; | ||
} | ||
} |
Oops, something went wrong.