id stringlengths 36 36 | text stringlengths 1 1.25M |
|---|---|
a3a78ec4-8f9f-4b60-b791-4741a723b27a | public void setName(String name) {
this.name = name;
} |
a861a058-ee06-4148-9ecf-b0a9bd1a46f3 | public User() {} |
3119597c-e701-439b-9a32-3ae57bf96e1a | public User(int id_user, String username, String password) {
super();
this.userId = id_user ;
this.username = username;
this.password = password;
} |
b05c984a-1e74-4b30-bed7-eeb98356c83e | public String getname() {
return name;
} |
057c7db7-516f-456d-af1b-aed69e605c8a | public void setname(String name) {
this.name = name;
} |
6fe2e57e-367e-46d8-8956-36d2c59a1fca | public String getFoto() {
return foto;
} |
0ac0217a-7c18-4ae8-9f90-294c9478c3ae | public void setFoto(String foto) {
this.foto = foto;
} |
0c6af019-3454-466b-a75f-2764cf3cacbe | public String getBio() {
return bio;
} |
df0ca384-9fb6-4108-bf16-d1fa73c26c72 | public void setBio(String bio) {
this.bio = bio;
} |
d749b5ee-5465-4d45-974b-98b639eff810 | public int getUserId() {
return userId;
} |
7310a813-21d7-4007-a3a1-48679e286e63 | public void setUserId(int id_user) {
this.userId = id_user;
} |
103c27be-d42e-4cac-879f-c2bfd99c4593 | public String getUsername() {
return username;
} |
5de5c8e6-b8d0-40c4-ada6-08fdec985fc3 | public void setUsername(String username) {
this.username = username;
} |
da50297c-3f83-4ba3-9879-0c0cff23045b | public String getPassword() {
return password;
} |
5df386da-c844-48d5-85ac-1c9da4e2668b | public void setPassword(String password) {
this.password = password;
} |
3acd92d1-2689-4460-b60f-7dd83d54653f | public Set<Project> getCreatedProject() {
return createdProject;
} |
0c43fc78-202e-4f2b-9274-1502475fa8bc | public void setCreatedProject(Set<Project> createdProject) {
this.createdProject = createdProject;
} |
32909cba-b920-4fa0-862e-ea7850476294 | public Fund() {} |
5c99c544-1efd-46cd-a45f-b1f629a59668 | public Fund(int fundId, Date createdDateTime, Project project, User user,
int value) {
super();
this.fundId = fundId;
this.createdDateTime = createdDateTime;
this.project = project;
this.user = user;
this.value = value;
} |
247245f4-cae6-4a27-bd13-67de7517273b | public int getFundId() {
return fundId;
} |
09abd37a-a317-45a9-a808-6915781d4d1d | public void setFundId(int fundId) {
this.fundId = fundId;
} |
3d276fb5-aa90-4894-b81f-98dd7ce8daba | public Date getCreatedDateTime() {
return createdDateTime;
} |
9cc363f8-a905-4a86-bad1-9d2d4d58a06f | public void setCreatedDateTime(Date createdDateTime) {
this.createdDateTime = createdDateTime;
} |
3c44d8db-b8c1-438a-b487-d1bf38927cac | public Project getProject() {
return project;
} |
8a172622-27cf-458a-9fe5-6cf226ed834b | public void setProject(Project project) {
this.project = project;
} |
0d77f570-7c09-4aaa-98df-b624c925169d | public User getUser() {
return user;
} |
037444b7-5113-4893-b328-96a26a1008ac | public void setUser(User user) {
this.user = user;
} |
d6ba8e22-5f5e-452c-a569-baf81b9a7129 | public int getValue() {
return value;
} |
314c7732-6c0c-4276-a4e2-4d3af8514943 | public void setValue(int value) {
this.value = value;
} |
7330d074-7977-4657-a5e5-f913543c757a | public Project() {} |
5c62ddf2-bb66-46a7-94cc-ad9e41c1a28d | public Project(int projectId, Location location, Category category,
User user, String title, String description, int minimalFund,
Date createdDate, Date lastDate, String photo, String explanation) {
super();
this.projectId = projectId;
this.location = location;
this.category = category;
this.user = user;
this.title = title;
this.description = description;
this.minimalFund = minimalFund;
this.createdDate = createdDate;
this.lastDate = lastDate;
this.photo = photo;
this.explanation = explanation;
} |
70ee7331-ad4b-406c-9416-b79085811172 | public int getProjectId() {
return projectId;
} |
1f380b23-8e70-42ab-b338-902707485997 | public void setProjectId(int projectId) {
this.projectId = projectId;
} |
8c432654-97d3-4784-b7dc-f09bea18e9d2 | public Location getLocation() {
return location;
} |
3ed5be0e-b65a-4786-8384-1a07f1c5b7d2 | public void setLocation(Location location) {
this.location = location;
} |
c2feef37-2f2a-4f8b-ad33-abd96052829c | public Category getCategory() {
return category;
} |
0c20094f-c755-4eae-94f6-b6591b4be4f3 | public void setCategory(Category category) {
this.category = category;
} |
7cc905b9-d0c3-4618-908a-82a4de845f9e | public User getUser() {
return user;
} |
50ce7afc-21d0-4cc7-b99e-268a93202a88 | public void setUser(User user) {
this.user = user;
} |
0cef9f30-3eba-498c-aaa8-bc3f5e091f75 | public String getTitle() {
return title;
} |
d7acc8a7-84d8-412b-8290-2831be8ec07c | public void setTitle(String title) {
this.title = title;
} |
f5729352-24c9-42db-850c-c206dbe96737 | public String getDescription() {
return description;
} |
f72531c0-832a-4ac2-a4f3-d360cbf989f8 | public void setDescription(String description) {
this.description = description;
} |
be5881f4-1a92-4c42-a631-16577527f5fc | public int getMinimalFund() {
return minimalFund;
} |
67213bd1-1b2a-4007-871f-7a045bd3f6b0 | public void setMinimalFund(int minimalFund) {
this.minimalFund = minimalFund;
} |
52acef41-d3c1-4066-9df5-52898187dca4 | public Date getCreatedDate() {
return createdDate;
} |
4efb2fe4-b8fa-40af-990e-b4a178e6099d | public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
} |
2c55f2ad-a9f4-4a30-998a-900a7ae86c04 | public Date getLastDate() {
return lastDate;
} |
c8fb8266-8d3a-4444-a218-3a8233c043e5 | public void setLastDate(Date lastDate) {
this.lastDate = lastDate;
} |
6c2e7abf-2850-42f8-b6c2-c922fcfc0514 | public String getPhoto() {
return photo;
} |
4fa53eb7-eab0-4288-b3d0-b6af9b4a9b3d | public void setPhoto(String photo) {
this.photo = photo;
} |
e8e9401c-e51b-407b-85c0-2904988bdd14 | public String getExplanation() {
return explanation;
} |
3d02e7b5-b6bd-44a1-aa4f-33a7a06f0dd6 | public void setExplanation(String explanation) {
this.explanation = explanation;
} |
e6f33098-a8b2-4b18-825a-9f23e883782e | public Set<Fund> getFunds() {
return funds;
} |
58298973-572a-4bc3-bcc7-a703ae32512e | public void setFunds(Set<Fund> funds) {
this.funds = funds;
} |
c7c4c722-a5fb-4af0-a154-2d329d944cb5 | public Set<Comment> getComments() {
return comments;
} |
18051dcb-c024-456b-85ee-dd5d3a14f332 | public void setComments(Set<Comment> comments) {
this.comments = comments;
} |
366e4109-0087-4c18-99af-7241c7dcfb18 | public Location() {} |
4e11609d-fdde-4c4e-b84f-b9c35ea41e4b | public Location(int locationId, String city, String province) {
super();
this.locationId = locationId;
this.city = city;
this.province = province;
} |
42ed58b2-d254-447f-ab71-24f53727889a | public int getLocationId() {
return locationId;
} |
bdd64803-d1c6-4787-b3e9-5bafff9e7c39 | public void setLocationId(int locationId) {
this.locationId = locationId;
} |
ee527248-0175-483f-b964-513ec7cb5ad0 | public String getCity() {
return city;
} |
d2ed0c1e-9970-45c8-b5a9-096abfd1da65 | public void setCity(String city) {
this.city = city;
} |
50df9e02-dec4-45c0-a85e-db0a197080f7 | public String getProvince() {
return province;
} |
9e97002b-4c59-4ede-b4c5-21d83325772f | public void setProvince(String province) {
this.province = province;
} |
fe7d6563-2ee9-4326-a3e3-0d9d6dd56fca | public void add(Fund fund); |
b046d857-6ff9-434d-aee4-ff32125cb4b6 | public void edit(Fund fund); |
f4485b35-8843-4f37-be6c-bf9935080e92 | public void delete(int fundId); |
fd823c0e-0519-4349-b18d-f07b4d8f9605 | public Fund getFund(int fundId); |
ca7f779e-2500-48de-a9c0-ff64570da3aa | public List getAllFund(); |
174f6964-fc69-4695-954d-6e47c890821d | public void add(Location location); |
77892a3f-1186-49ba-a350-a974b3b4c991 | public void edit(Location location); |
567b17da-8df3-4a9d-9fe4-8b424e15f215 | public void delete(int locationId); |
fc2c0cc9-f916-40a3-840a-b859d511f768 | public Location getLocation(int locationId); |
b82bb255-2446-421b-b0d8-9e843af880f7 | public List getAllLocation(); |
9e560156-1390-4d61-864d-cd2f0c2776bb | public void add(Category category); |
5cc3a772-e7ec-4e2d-8c78-dff35df5a6c1 | public void edit(Category category); |
504d1a1d-7557-467a-bc94-470bdc8c82b9 | public void delete(int categoryId); |
90226680-f30b-4f06-9628-2953f871d70e | public Category getCategory(int categoryId); |
1b597a5f-8e0a-4335-9884-f62fdf84dac5 | public List getAllCategory(); |
bbbff59e-3acc-4703-81ce-ce003d79e4fa | public void add(User user); |
4496968a-778d-49ca-abe1-05fb815288d3 | public void edit(User user); |
14ed19f2-38c3-4823-95c1-9ea3fca631a2 | public void delete(int userId); |
c161dbb6-6d24-40b4-ba54-747aeb08ee0d | public User getUser(int userId); |
7640b059-762c-4dd6-846c-b7e98c1766fe | public List getAllUser(); |
c6a5ebc3-965f-4c12-80c9-4efd99a47e76 | public void add(Project project); |
ea4af7e5-14ed-45f1-8f51-19915c9f9fa1 | public void edit(Project project); |
23037433-4709-432b-99b9-94d5ea5c314a | public void delete(int projectId); |
504893e4-7859-4480-aac5-42c929aba0b3 | public Project getProject(int projectId); |
7fc91e10-e03f-4e3e-b627-3474de992d13 | public List getAllProject(); |
2d5de982-1978-4b29-bfaa-fb397aed9476 | @Transactional
public void add(User user) {
// TODO Auto-generated method stub
session.getCurrentSession().save(user);
} |
34513f36-41f8-4d3e-98a5-7505baeb7707 | @Transactional
public void edit(User user) {
// TODO Auto-generated method stub
session.getCurrentSession().update(user);
} |
7a9aad6f-11b7-447d-af48-03e1775f268e | @Transactional
public void delete(int userId) {
// TODO Auto-generated method stub
session.getCurrentSession().delete(getUser(userId));
} |
eed30f91-8be5-4225-8fd0-1819e3bc1b7b | @Transactional
public User getUser(int userId) {
// TODO Auto-generated method stub
return (User)session.getCurrentSession().get(User.class, userId);
} |
a89b848c-6bc9-4322-9e24-dc34e2a2bc34 | @Transactional
public List getAllUser() {
// TODO Auto-generated method stub
return session.getCurrentSession().createQuery("from User").list();
} |
21cb3a33-860c-401b-928d-d423b28a1d2c | @Transactional
public void add(Fund fund) {
// TODO Auto-generated method stub
session.getCurrentSession().save(fund);
} |
1b9fff54-7522-40b7-bdd6-88f9cc62d4df | @Transactional
public void edit(Fund fund) {
// TODO Auto-generated method stub
session.getCurrentSession().update(fund);
} |
7de90a30-e342-49eb-990c-390ad284f867 | @Transactional
public void delete(int fundId) {
// TODO Auto-generated method stub
session.getCurrentSession().delete(getFund(fundId));
} |
8204f250-8f1b-4824-9e12-081187b366b0 | @Transactional
public Fund getFund(int fundId) {
// TODO Auto-generated method stub
return (Fund)session.getCurrentSession().get(Fund.class, fundId);
} |
3a67f6c9-65c0-4953-b5a9-051ede55b7cd | @Transactional
public List getAllFund() {
// TODO Auto-generated method stub
return session.getCurrentSession().createQuery("from Fund").list();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.