Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion java/reflection-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ CdsEntity books = model.getEntity("my.bookshop.Books");
CdsElement title = books.getElement("title");

boolean key = title.isKey(); // false
boolean localized = title.isLocalized(); // true
CdsType type = title.getType(); // CdsSimpleType

if (type.isSimple()) { // true
Expand All @@ -88,7 +89,6 @@ if (type.isSimple()) { // true
String typeName = simple.getQualifiedName(); // "cds.String"
CdsBaseType baseType = simple.getType(); // CdsBaseType.STRING
Class<?> javaType = simple.getJavaType(); // String.class
Boolean localized = simple.get("localized"); // true
Integer length = simple.get("length"); // 111
}
```
Expand Down