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

Add files via upload #65

Open
wants to merge 1 commit 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
75 changes: 75 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,75 @@
package com.wellsfargo.counselor.entity;

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

@Entity
public class Client {
@Id
@GeneratedValue()
private long client_id;

@Column(nullable = false)
private long advisor_id;

@Column(nullable = false)
private String name;

@Column(nullable = false)
private String contact_info;

@Column(nullable = false)
private long portfolio_id;

public Client(){

}

public Client(int client_id, int advisor_id, String name, String contact_info, int portfolio_id) {
this.client_id = client_id;
this.advisor_id = advisor_id;
this.name = name;
this.contact_info = contact_info;
this.portfolio_id = portfolio_id;
}

public long getClient_id() {
return client_id;
}

public long getAdvisor_id() {
return advisor_id;
}

public void setAdvisor_id(int advisor_id) {
this.advisor_id = advisor_id;
}

public String getName() {
return name;
}

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

public String getContact_info() {
return contact_info;
}

public void setContact_info(String contact_info) {
this.contact_info = contact_info;
}

public long getPortfolio_id() {
return portfolio_id;
}

public void setPortfolio_id(int portfolio_id) {
this.portfolio_id = portfolio_id;
}


}
36 changes: 36 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,36 @@
package com.wellsfargo.counselor.entity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;

@Entity
public class Portfolio {

@Id
@GeneratedValue()
private long portfolio_id;

@Column(nullable = false)
private long client_id;

public Portfolio(long portfolio_id, long client_id) {
this.portfolio_id = portfolio_id;
this.client_id = client_id;
}

public long getPortfolio_id() {
return portfolio_id;
}

public long getClient_id() {
return client_id;
}

public void setClient_id(long client_id) {
this.client_id = client_id;
}



}
59 changes: 59 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,59 @@
package com.wellsfargo.counselor.entity;

import com.sun.javafx.beans.IDProperty;

@Entity
public class Security {

@ID
@GeneratedValue()
private long security_id;

@Column(nullable = false)
private long portfolio_id;

@Column(nullable = false)
private String name;

@Column(nullable = false)
private int quantity;

public Security(long security_id, long portfolio_id, String name, int quantity) {
this.security_id = security_id;
this.portfolio_id = portfolio_id;
this.name = name;
this.quantity = quantity;
}


public long getSecurity_id() {
return security_id;
}

public long getPortfolio_id() {
return portfolio_id;
}

public void setPortfolio_id(long portfolio_id) {
this.portfolio_id = portfolio_id;
}

public String getName() {
return name;
}

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

public int getQuantity() {
return quantity;
}

public void setQuantity(int quantity) {
this.quantity = quantity;
}



}