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
package com.clesyclean.service.entities.base; | |
import java.math.BigDecimal; | |
import javax.persistence.Embeddable; | |
import lombok.Data; | |
@Data | |
@Embeddable |
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
public class RandomCode { | |
public static final String EXISTING_CODES[] = { "12345", "54321", "11111", "22222", "33333", "44444" }; | |
public static void main(String args[]) { | |
// TODO generate random code | |
// TODO check if random code is unique | |