can we create a foreign key while creating cdt from scratch?
Discussion posts and replies are publicly visible
In case you don't want to nest CDTs, then you can create a CDT via XSD and then use the JPA annotations to establish the foreign key relation on the CDT level but that wouldn't add an FK constraint on the DB level.