Last change
on this file since 5f9d25a was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
417 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki.model;
|
---|
| 2 |
|
---|
| 3 | import lombok.Data;
|
---|
| 4 |
|
---|
| 5 | import javax.persistence.Entity;
|
---|
| 6 | import javax.persistence.GeneratedValue;
|
---|
| 7 | import javax.persistence.GenerationType;
|
---|
| 8 | import javax.persistence.Id;
|
---|
| 9 |
|
---|
| 10 | @Entity
|
---|
| 11 | @Data
|
---|
| 12 | public class Skill {
|
---|
| 13 |
|
---|
| 14 | @Id
|
---|
| 15 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 16 | Long id;
|
---|
| 17 |
|
---|
| 18 | String name;
|
---|
| 19 |
|
---|
| 20 | public Skill(){}
|
---|
| 21 |
|
---|
| 22 | public Skill(String name) {
|
---|
| 23 | this.name = name;
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.