Skip to content

Commit

Permalink
Fix importedKey and indexInfo metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lucarota committed Jul 5, 2024
1 parent d57e6c7 commit ce8c89a
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ private Column convertToColumn(Field field) {
column.setNillable(field.isNillable());
column.setCalculated(field.isCalculated() || field.isAutoNumber());
column.setLength(field.getLength());
column.setUnique(field.isUnique());
column.setIndexed(
field.getName().equals("Id") ||
field.isAutoNumber() ||
(field.isUnique() && field.isExternalId()));
String[] referenceTos = field.getReferenceTo();
List<String> sObjectTypes = getSObjectTypes();
if (referenceTos != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ public class Column implements Serializable {
@Setter
private boolean nillable;
@Setter
private boolean unique;
@Setter
private boolean calculated;
@Setter
private boolean indexed;
}
Loading

0 comments on commit ce8c89a

Please sign in to comment.