Hello , I've relational db , and there is some table named enumerations with , some key and values.We will migrate to objectdb.
Our problem is , we want to store some keys and values for global application configs.
Like;
tablename : enumeration table rows: key value servername 127.0.0.1 serverPort 4444 username test password test pictureCount 588 ...
Is there any JPA annotation that can handle all those easiest way ?
Like this:
@Entity @Table(name="enumerations") public class Enumerations { //Field binding possible like below ? @Column(field="servername") private String serverName; @Column(field="username") private String username; @Column(field="serverPort") private Integer serverPort; public final String getServerName() { return serverName; } public final void setServerName(String serverName) { this.serverName = serverName; } }
So , when i make set , get servername I will directly set or get config from server.
I know there is no field value on Column annotation but i need solution like that on pure JPA if possible.
Fastest clear way...
I've looked some other annotations but i could not find any solution like this.