Skip to content

Instantly share code, notes, and snippets.

View steima's full-sized avatar
🐢
Aaah TypeScript, such an elegant language!

Matthias Steinbauer steima

🐢
Aaah TypeScript, such an elegant language!
View GitHub Profile
@steima
steima / RandomCode.java
Created February 5, 2020 08:03
Code Snippet for Random Code Generation
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
@steima
steima / Taxation.java
Created February 5, 2020 08:04
Taxation.java
package com.clesyclean.service.entities.base;
import java.math.BigDecimal;
import javax.persistence.Embeddable;
import lombok.Data;
@Data
@Embeddable