https://github.com/otaviojava/constructor-prototype
This is a sample prototype code to explore the creation of Constructor instead of
https://github.com/otaviojava/constructor-prototype
Last synced: 5 months ago
JSON representation
This is a sample prototype code to explore the creation of Constructor instead of
- Host: GitHub
- URL: https://github.com/otaviojava/constructor-prototype
- Owner: otaviojava
- Created: 2022-07-30T18:46:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-04T10:42:11.000Z (almost 3 years ago)
- Last Synced: 2024-12-30T05:29:27.375Z (7 months ago)
- Language: Java
- Size: 72.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# constructor-prototype
This is a sample prototype code to explore the creation of Constructor instead of use fields.
The proposal is to have support to:
```java
@Entity
public class Animal {@Id
private final String id;@Column
private final String name;@Column
private final String race;@Constructor
Animal(@Id String id, @Column("name") String name, @Column("race") String race) {
this.id = id;
this.name = name;
this.race = race;
}
```