-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate is-getters for primitive booleans, fix #273
- Loading branch information
Showing
4 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ieldgenerator-test/src/main/java/com/speedment/jpastreamer/fieldgenerator/test/User2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.speedment.jpastreamer.fieldgenerator.test; | ||
|
||
import javax.persistence.*; | ||
import javax.validation.constraints.NotEmpty; | ||
|
||
import java.io.Serializable; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
@Entity | ||
@Table(name="user") | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
|
||
public class User2 implements Serializable{ | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_shared") | ||
@SequenceGenerator(name = "seq_shared", sequenceName = "seq_shared",allocationSize = 1) | ||
Long id; | ||
|
||
@NotEmpty | ||
private String username; | ||
|
||
@NotEmpty | ||
private String password; | ||
|
||
// Should generate isEnabled | ||
private boolean enabled; | ||
|
||
// Should generate getActive | ||
private Boolean active; | ||
} |