jhipster-core
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -86,2 +86,3 @@ 'use strict'; | ||
entities[entityName] = { // todo: make a builder/factory instead! | ||
fluentMethods: true, | ||
relationships: [], | ||
@@ -267,2 +268,3 @@ fields: [], | ||
splitField = extractField(relatedRelationship.injectedFieldInFrom); | ||
relationship.otherEntityRelationshipName = _.lowerFirst(extractField(relatedRelationship.injectedFieldInTo).relationshipName); | ||
relationship.relationshipName = _.camelCase(splitField.relationshipName); | ||
@@ -269,0 +271,0 @@ relationship.otherEntityName = _.lowerFirst(_.camelCase(relatedRelationship.to.name)); |
{ | ||
"name": "jhipster-core", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "JHipster's own domain language and core objects", | ||
@@ -5,0 +5,0 @@ "main": "module/index.js", |
@@ -52,2 +52,5 @@ 'use strict'; | ||
expect(Object.keys(content).length).to.eq(8); | ||
for (let i = 0, entities = Object.keys(content); i < entities.length; i++) { | ||
expect(content[entities[i]].fluentMethods).to.eq(true); | ||
} | ||
expect(content.Department.relationships.length).to.eq(2); | ||
@@ -58,2 +61,4 @@ expect(content.Department.fields.length).to.eq(2); | ||
expect(content.Employee.pagination).to.eq('infinite-scroll'); | ||
expect(content.Job.relationships[0].otherEntityRelationshipName).to.eq('job'); | ||
expect(content.Task.relationships[0].otherEntityRelationshipName).to.eq('chore'); | ||
}); | ||
@@ -60,0 +65,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
406955
10855