Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-04T10:42:11.000Z (over 2 years ago)
- Last Synced: 2023-03-12T06:39:25.688Z (over 1 year 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;
}
```