forked from hibernate/hibernate-search
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#30 add table
stock
, provided by yahoo finance
- Loading branch information
Showing
4 changed files
with
4,326 additions
and
0 deletions.
There are no files selected for viewing
121 changes: 121 additions & 0 deletions
121
us-address/src/main/java/io/github/mincongh/entity/Stock.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,121 @@ | ||
package io.github.mincongh.entity; | ||
|
||
import java.io.Serializable; | ||
import javax.persistence.*; | ||
import java.util.Date; | ||
|
||
|
||
/** | ||
* The persistent class for the stock database table. | ||
* | ||
*/ | ||
@Entity | ||
@NamedQuery(name="Stock.findAll", query="SELECT s FROM Stock s") | ||
public class Stock implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
|
||
@Id | ||
@GeneratedValue(strategy=GenerationType.IDENTITY) | ||
private int id; | ||
|
||
@Column(name="adj_close") | ||
private float adjClose; | ||
|
||
private float close; | ||
|
||
private String company; | ||
|
||
@Temporal(TemporalType.DATE) | ||
private Date date; | ||
|
||
private float high; | ||
|
||
private float low; | ||
|
||
private float open; | ||
|
||
private int volume; | ||
|
||
public Stock() { | ||
} | ||
|
||
public int getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public float getAdjClose() { | ||
return this.adjClose; | ||
} | ||
|
||
public void setAdjClose(float adjClose) { | ||
this.adjClose = adjClose; | ||
} | ||
|
||
public float getClose() { | ||
return this.close; | ||
} | ||
|
||
public void setClose(float close) { | ||
this.close = close; | ||
} | ||
|
||
public String getCompany() { | ||
return this.company; | ||
} | ||
|
||
public void setCompany(String company) { | ||
this.company = company; | ||
} | ||
|
||
public Date getDate() { | ||
return this.date; | ||
} | ||
|
||
public void setDate(Date date) { | ||
this.date = date; | ||
} | ||
|
||
public float getHigh() { | ||
return this.high; | ||
} | ||
|
||
public void setHigh(float high) { | ||
this.high = high; | ||
} | ||
|
||
public float getLow() { | ||
return this.low; | ||
} | ||
|
||
public void setLow(float low) { | ||
this.low = low; | ||
} | ||
|
||
public float getOpen() { | ||
return this.open; | ||
} | ||
|
||
public void setOpen(float open) { | ||
this.open = open; | ||
} | ||
|
||
public int getVolume() { | ||
return this.volume; | ||
} | ||
|
||
public void setVolume(int volume) { | ||
this.volume = volume; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Stock [id=" + id + ", adjClose=" + adjClose + ", close=" + close | ||
+ ", company=" + company + ", date=" + date + ", high=" + high | ||
+ ", low=" + low + ", open=" + open + ", volume=" + volume | ||
+ "]"; | ||
} | ||
} |
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
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
Oops, something went wrong.