Skip to content

Instantly share code, notes, and snippets.

@dmi3coder
Created April 26, 2020 13:02
Show Gist options
  • Save dmi3coder/4cc4d223e5992f4f12bcc9bf4f39fc36 to your computer and use it in GitHub Desktop.
Save dmi3coder/4cc4d223e5992f4f12bcc9bf4f39fc36 to your computer and use it in GitHub Desktop.
Example of Setting entity used in Quarkus Command mode example
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