Skip to content

Commit

Permalink
Add SQL Expression on attribute mapping level
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Otten committed Dec 4, 2024
1 parent 3e133d1 commit c36eceb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
.if (%Comment%)
<Comment>%.X:Comment%</Comment>
.endif(\n)
.comment only display the sql expression if stereotype is a mdde_sourceobject of type business rule
.if (%.D:mdde_SourceObject%) && (%SourceFeature%)
.if (%SourceFeature.Entity.Stereotype% == "mdde_WindowBusinessRule")
.if (%.D:mdde_SourceObject.mdde_SqlExpression?%)
<SourceObjectSqlExpression>"%.XD:mdde_SourceObject.mdde_SqlExpression%"</SourceObjectSqlExpression>
.endif(\n)
.endif
.endif
.comment Add the content of the export extension template
.if (%Model.mdde_Export_Extension_Attached%)
.if(%.D:mddex_BaseStructuralFeatureMapping_Export_Content%)
Expand Down

0 comments on commit c36eceb

Please sign in to comment.