This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented the jpaMetamodelFiltering option
Closes: jhipster/generator-jhipster#6286
- Loading branch information
MathieuAA
committed
Aug 28, 2017
1 parent
e7699e1
commit fd8f712
Showing
16 changed files
with
1,494 additions
and
1,216 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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,4 @@ | ||
entity A | ||
entity B | ||
|
||
filter * except B |
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 |
---|---|---|
@@ -1,39 +1,40 @@ | ||
{ | ||
"fluentMethods": true, | ||
"relationships": [ | ||
{ | ||
"relationshipType": "one-to-one", | ||
"relationshipName": "region", | ||
"otherEntityName": "region", | ||
"otherEntityField": "id", | ||
"ownerSide": true, | ||
"otherEntityRelationshipName": "country" | ||
}, | ||
{ | ||
"relationshipType": "one-to-one", | ||
"relationshipName": "user", | ||
"otherEntityName": "user", | ||
"otherEntityField": "id", | ||
"ownerSide": true, | ||
"otherEntityRelationshipName": "country" | ||
} | ||
], | ||
"fields": [ | ||
{ | ||
"fieldName": "countryId", | ||
"fieldType": "Long", | ||
"javadoc": "The country Id" | ||
}, | ||
{ | ||
"fieldName": "countryName", | ||
"fieldType": "String" | ||
} | ||
], | ||
"changelogDate": "20160926101210", | ||
"entityTableName": "country", | ||
"dto": "no", | ||
"pagination": "no", | ||
"service": "no", | ||
"skipClient": true, | ||
"skipServer": true | ||
"fluentMethods": true, | ||
"relationships": [ | ||
{ | ||
"relationshipType": "one-to-one", | ||
"relationshipName": "region", | ||
"otherEntityName": "region", | ||
"otherEntityField": "id", | ||
"ownerSide": true, | ||
"otherEntityRelationshipName": "country" | ||
}, | ||
{ | ||
"relationshipType": "one-to-one", | ||
"relationshipName": "user", | ||
"otherEntityName": "user", | ||
"otherEntityField": "id", | ||
"ownerSide": true, | ||
"otherEntityRelationshipName": "country" | ||
} | ||
], | ||
"fields": [ | ||
{ | ||
"fieldName": "countryId", | ||
"fieldType": "Long", | ||
"javadoc": "The country Id" | ||
}, | ||
{ | ||
"fieldName": "countryName", | ||
"fieldType": "String" | ||
} | ||
], | ||
"changelogDate": "20160926101210", | ||
"entityTableName": "country", | ||
"dto": "no", | ||
"pagination": "no", | ||
"service": "no", | ||
"jpaMetamodelFiltering": false, | ||
"skipClient": true, | ||
"skipServer": true | ||
} |
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 |
---|---|---|
@@ -1,41 +1,42 @@ | ||
{ | ||
"fluentMethods": true, | ||
"relationships": [ | ||
{ | ||
"relationshipType": "one-to-one", | ||
"relationshipName": "location", | ||
"otherEntityName": "location", | ||
"otherEntityField": "id", | ||
"ownerSide": true, | ||
"otherEntityRelationshipName": "department" | ||
}, | ||
{ | ||
"relationshipType": "one-to-many", | ||
"relationshipValidateRules": "required", | ||
"relationshipName": "employee", | ||
"otherEntityName": "employee", | ||
"javadoc": "A relationship", | ||
"otherEntityRelationshipName": "department" | ||
} | ||
], | ||
"fields": [ | ||
{ | ||
"fieldName": "departmentId", | ||
"fieldType": "Long" | ||
}, | ||
{ | ||
"fieldName": "departmentName", | ||
"fieldType": "String", | ||
"fieldValidateRules": [ | ||
"required" | ||
] | ||
} | ||
], | ||
"changelogDate": "20160926092246", | ||
"entityTableName": "department", | ||
"dto": "no", | ||
"pagination": "no", | ||
"service": "no", | ||
"skipClient": true, | ||
"skipServer": true | ||
"fluentMethods": true, | ||
"relationships": [ | ||
{ | ||
"relationshipType": "one-to-one", | ||
"relationshipName": "location", | ||
"otherEntityName": "location", | ||
"otherEntityField": "id", | ||
"ownerSide": true, | ||
"otherEntityRelationshipName": "department" | ||
}, | ||
{ | ||
"relationshipType": "one-to-many", | ||
"relationshipValidateRules": "required", | ||
"relationshipName": "employee", | ||
"otherEntityName": "employee", | ||
"javadoc": "A relationship", | ||
"otherEntityRelationshipName": "department" | ||
} | ||
], | ||
"fields": [ | ||
{ | ||
"fieldName": "departmentId", | ||
"fieldType": "Long" | ||
}, | ||
{ | ||
"fieldName": "departmentName", | ||
"fieldType": "String", | ||
"fieldValidateRules": [ | ||
"required" | ||
] | ||
} | ||
], | ||
"changelogDate": "20160926092246", | ||
"entityTableName": "department", | ||
"dto": "no", | ||
"pagination": "no", | ||
"service": "no", | ||
"jpaMetamodelFiltering": false, | ||
"skipClient": true, | ||
"skipServer": true | ||
} |
Oops, something went wrong.
fd8f712
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this can be used directly from jdl and jdl-studio?
fd8f712
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I release a new version, which isn't right now as we're migrating from PegJS to Chevrotain.
fd8f712
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MathieuAA Still not merged I'm afraid ? Any plans to release this soon ?
fd8f712
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agoncal Hello. Yeah, tonight as a matter of fact I intend to release a patch or a minor version.
fd8f712
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MathieuAA you are the best !