forked from avniproject/avni-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avniproject#762 | Proper object for field details created
- Loading branch information
1 parent
6b4edfb
commit b456232
Showing
3 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
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
59 changes: 59 additions & 0 deletions
59
avni-server-api/src/main/java/org/avni/server/domain/metabase/FieldDetails.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package org.avni.server.domain.metabase; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class FieldDetails { | ||
|
||
@JsonProperty("id") | ||
private int id; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("display_name") | ||
private String displayName; | ||
|
||
@JsonProperty("base_type") | ||
private String baseType; | ||
|
||
@JsonProperty("semantic_type") | ||
private String semanticType; | ||
|
||
@JsonProperty("table_name") | ||
private String tableName; | ||
|
||
@JsonProperty("schema") | ||
private String schema; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
|
||
public String getBaseType() { | ||
return baseType; | ||
} | ||
|
||
public String getSemanticType() { | ||
return semanticType; | ||
} | ||
|
||
public String getTableName() { | ||
return tableName; | ||
} | ||
|
||
|
||
public String getSchema() { | ||
return schema; | ||
} | ||
|
||
} |
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