Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new classes #11

Open
wants to merge 2 commits into
base: flow
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions src/main/java/com/wellsfargo/counselor/entity/Advisor.java

This file was deleted.

52 changes: 52 additions & 0 deletions src/main/java/com/wellsfargo/counselor/entity/Client.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package com.wellsfargo.counselor.entity;

import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;

public class Client {

@Id
@GeneratedValue()
private long Clientid;

@Column(nullable = false)
private String Clientname;

@Column(nullable = false)
private String Advisorid;

protected Client() {

}

public Client(long Clientid, String Clientname, String Advisorid) {
this.Clientid = Clientid;
this.Clientname = Clientname;
this.Advisorid = Advisorid;
}
public long getClientid() {
return Clientid;
}

public void setClientid(String Clientid) {
this.Clientid = Long.parseLong(Clientid);
}

public String Clientname() {
return Clientname;
}

public void setClientname(String Clientname) {
this.Clientname = Clientname;
}

public String getAdvisorid() {
return Advisorid;
}

public void setAdvisorid(String Advisorid) {
this.Advisorid = Advisorid;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.wellsfargo.counselor.entity;


import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;

@Entity
public class Financialadvisor {

@Id
@GeneratedValue()
private long advisor_id;

@Column(nullable = false)
private String Name;

protected Financialadvisor() {

}

public Financialadvisor(long advisor_id, String Name) {
this.advisor_id = advisor_id;
this.Name = Name;
}

public Long getAdvisor_id() {
return advisor_id;
}

public String getName() {
return Name;
}

public void setName(String Name) {
this.Name = Name;
}
}

54 changes: 54 additions & 0 deletions src/main/java/com/wellsfargo/counselor/entity/Portfolio.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package com.wellsfargo.counselor.entity;

import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;

public class Portfolio {

@Id
@GeneratedValue()

@Column(nullable = false)
private long Portfolioid;

@Column(nullable = false)
private String Product_name;

@Column(nullable = false)
private long Clientid;

protected Portfolio() {

}

public Portfolio(long Portfolioid, String Product_name, long Clientid) {
this.Portfolioid = Portfolioid;
this.Product_name = Product_name;
this.Clientid = Clientid;
}
public long getPortfolioid() {
return Portfolioid;
}

public void setPortfolioid(String Portfolioid) {
this.Portfolioid = Long.parseLong(Portfolioid);
}

public String Product_name() {
return Product_name;
}

public void setProduct_name(String product_name) {
this.Product_name = Product_name;
}

public long getClientid() {
return Clientid;
}

public void setClientid(String Clientid) {
this.Clientid = Long.parseLong(Clientid);
}

}
89 changes: 89 additions & 0 deletions src/main/java/com/wellsfargo/counselor/entity/Security.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
package com.wellsfargo.counselor.entity;

import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;

import java.util.Date;

public class Security {

@jakarta.persistence.Id
@GeneratedValue()
@Column(nullable = false)
private long Id;

@Column(nullable = false)
private String Category;

@Column(nullable = false)
private String Purchase_date;

@Column(nullable = false)
private long Purchase_price;

@Column(nullable = false)
private long Quantity;

@Column(nullable = false)
private long Portfolio_id;
protected Security() {

}

public Security(long Id, String Category, Date Purchase_date, long Purchase_price, long Quantity, long Portfolio_id) {
this.Id = Id;
this.Category = Category;
this.Purchase_date = String.valueOf(Purchase_date);
this.Purchase_price = Purchase_price;
this.Quantity = Quantity;
this.Portfolio_id = Portfolio_id;
}
public long getId() {
return Id;
}

public void setId(String Id) {
this.Id = Long.parseLong(Id);
}

public String Category() {
return Category;
}

public void setCategory(String Category) {
this.Category = Category;
}

public String getPurchase_date() {
return Purchase_date;
}

public void setPurchase_date(String Purchase_date) {
this.Purchase_date = Purchase_date;
}

public long getPurchase_price() {
return Purchase_price;
}

public void setPurchase_price(String Purchase_price) {
this.Purchase_price = Long.parseLong(Purchase_price);
}

public long getQuantity() {
return Quantity;
}

public void setQuantity(String Quantity) {
this.Quantity = Long.parseLong(Quantity);
}

public long getPortfolio_id() {
return Portfolio_id;
}

public void setPortfolio_id(String Portfolio_id) {
this.Portfolio_id = Long.parseLong(Portfolio_id);
}

}