Created
April 26, 2020 13:02
-
-
Save dmi3coder/4cc4d223e5992f4f12bcc9bf4f39fc36 to your computer and use it in GitHub Desktop.
Example of Setting entity used in Quarkus Command mode example
This file contains hidden or 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 org.acme.getting.started.data; | |
import io.quarkus.hibernate.orm.panache.PanacheEntityBase; | |
import javax.persistence.*; | |
@Entity | |
public class Setting extends PanacheEntityBase { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
public Integer id; | |
@Column(unique = true) | |
public String key; | |
public String value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment