import of initial customer.jdl including related entities
This commit is contained in:
.jhipster
src
main
java
org
hostsharing
hsadminng
domain
repository
AssetRepository.javaContactRepository.javaCustomerContactRepository.javaCustomerRepository.javaMembershipRepository.javaShareRepository.java
service
AssetQueryService.javaAssetService.javaContactQueryService.javaContactService.javaCustomerContactQueryService.javaCustomerContactService.javaCustomerQueryService.javaCustomerService.javaMembershipQueryService.javaMembershipService.javaShareQueryService.javaShareService.java
dto
AssetCriteria.javaAssetDTO.javaContactCriteria.javaContactDTO.javaCustomerContactCriteria.javaCustomerContactDTO.javaCustomerCriteria.javaCustomerDTO.javaMembershipCriteria.javaMembershipDTO.javaShareCriteria.javaShareDTO.java
mapper
web
resources
config
liquibase
changelog
20190403083735_added_entity_Customer.xml20190403083736_added_entity_Contact.xml20190403083737_added_entity_CustomerContact.xml20190403083737_added_entity_constraints_CustomerContact.xml20190403083738_added_entity_Membership.xml20190403083738_added_entity_constraints_Membership.xml20190403083739_added_entity_Share.xml20190403083739_added_entity_constraints_Share.xml20190403083740_added_entity_Asset.xml20190403083740_added_entity_constraints_Asset.xml
master.xmlwebapp
app
entities
asset
asset-delete-dialog.component.htmlasset-delete-dialog.component.tsasset-detail.component.htmlasset-detail.component.tsasset-update.component.htmlasset-update.component.tsasset.component.htmlasset.component.tsasset.module.tsasset.route.tsasset.service.tsindex.ts
contact
contact-delete-dialog.component.htmlcontact-delete-dialog.component.tscontact-detail.component.htmlcontact-detail.component.tscontact-update.component.htmlcontact-update.component.tscontact.component.htmlcontact.component.tscontact.module.tscontact.route.tscontact.service.tsindex.ts
customer-contact
customer-contact-delete-dialog.component.htmlcustomer-contact-delete-dialog.component.tscustomer-contact-detail.component.htmlcustomer-contact-detail.component.tscustomer-contact-update.component.htmlcustomer-contact-update.component.tscustomer-contact.component.htmlcustomer-contact.component.tscustomer-contact.module.tscustomer-contact.route.tscustomer-contact.service.tsindex.ts
customer
customer-delete-dialog.component.htmlcustomer-delete-dialog.component.tscustomer-detail.component.htmlcustomer-detail.component.tscustomer-update.component.htmlcustomer-update.component.tscustomer.component.htmlcustomer.component.tscustomer.module.tscustomer.route.tscustomer.service.tsindex.ts
entity.module.tsmembership
index.tsmembership-delete-dialog.component.htmlmembership-delete-dialog.component.tsmembership-detail.component.htmlmembership-detail.component.tsmembership-update.component.htmlmembership-update.component.tsmembership.component.htmlmembership.component.tsmembership.module.tsmembership.route.tsmembership.service.ts
share
layouts
navbar
shared
i18n
test
java
org
javascript
spec
app
entities
asset
asset-delete-dialog.component.spec.tsasset-detail.component.spec.tsasset-update.component.spec.tsasset.component.spec.tsasset.service.spec.ts
contact
contact-delete-dialog.component.spec.tscontact-detail.component.spec.tscontact-update.component.spec.tscontact.component.spec.tscontact.service.spec.ts
customer-contact
customer-contact-delete-dialog.component.spec.tscustomer-contact-detail.component.spec.tscustomer-contact-update.component.spec.tscustomer-contact.component.spec.tscustomer-contact.service.spec.ts
customer
customer-delete-dialog.component.spec.tscustomer-detail.component.spec.tscustomer-update.component.spec.tscustomer.component.spec.tscustomer.service.spec.ts
membership
membership-delete-dialog.component.spec.tsmembership-detail.component.spec.tsmembership-update.component.spec.tsmembership.component.spec.tsmembership.service.spec.ts
share
53
.jhipster/Asset.json
Normal file
53
.jhipster/Asset.json
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "Asset",
|
||||
"fields": [
|
||||
{
|
||||
"fieldName": "date",
|
||||
"fieldType": "LocalDate",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "action",
|
||||
"fieldType": "AssetAction",
|
||||
"fieldValues": "PAYMENT,HANDOVER,ADOPTION,LOSS,CLEARING,PAYBACK",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "amount",
|
||||
"fieldType": "BigDecimal",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "comment",
|
||||
"fieldType": "String",
|
||||
"fieldValidateRules": [
|
||||
"maxlength"
|
||||
],
|
||||
"fieldValidateRulesMaxlength": 160
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"relationshipType": "many-to-one",
|
||||
"otherEntityName": "membership",
|
||||
"otherEntityRelationshipName": "asset",
|
||||
"relationshipName": "member",
|
||||
"otherEntityField": "id"
|
||||
}
|
||||
],
|
||||
"changelogDate": "20190403083740",
|
||||
"entityTableName": "asset",
|
||||
"dto": "mapstruct",
|
||||
"pagination": "infinite-scroll",
|
||||
"service": "serviceClass",
|
||||
"jpaMetamodelFiltering": true,
|
||||
"fluentMethods": true,
|
||||
"clientRootFolder": "",
|
||||
"applications": "*"
|
||||
}
|
49
.jhipster/Contact.json
Normal file
49
.jhipster/Contact.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "Contact",
|
||||
"fields": [
|
||||
{
|
||||
"fieldName": "firstName",
|
||||
"fieldType": "String",
|
||||
"fieldValidateRules": [
|
||||
"required",
|
||||
"maxlength"
|
||||
],
|
||||
"fieldValidateRulesMaxlength": 80
|
||||
},
|
||||
{
|
||||
"fieldName": "lastName",
|
||||
"fieldType": "String",
|
||||
"fieldValidateRules": [
|
||||
"required",
|
||||
"maxlength"
|
||||
],
|
||||
"fieldValidateRulesMaxlength": 80
|
||||
},
|
||||
{
|
||||
"fieldName": "email",
|
||||
"fieldType": "String",
|
||||
"fieldValidateRules": [
|
||||
"required",
|
||||
"maxlength"
|
||||
],
|
||||
"fieldValidateRulesMaxlength": 80
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"relationshipType": "one-to-many",
|
||||
"otherEntityName": "customerContact",
|
||||
"otherEntityRelationshipName": "contact",
|
||||
"relationshipName": "role"
|
||||
}
|
||||
],
|
||||
"changelogDate": "20190403083736",
|
||||
"entityTableName": "contact",
|
||||
"dto": "mapstruct",
|
||||
"pagination": "infinite-scroll",
|
||||
"service": "serviceClass",
|
||||
"jpaMetamodelFiltering": true,
|
||||
"fluentMethods": true,
|
||||
"clientRootFolder": "",
|
||||
"applications": "*"
|
||||
}
|
50
.jhipster/Customer.json
Normal file
50
.jhipster/Customer.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "Customer",
|
||||
"fields": [
|
||||
{
|
||||
"fieldName": "number",
|
||||
"fieldType": "Integer",
|
||||
"fieldValidateRules": [
|
||||
"required",
|
||||
"unique",
|
||||
"min",
|
||||
"max"
|
||||
],
|
||||
"fieldValidateRulesMin": 10000,
|
||||
"fieldValidateRulesMax": 99999
|
||||
},
|
||||
{
|
||||
"fieldName": "prefix",
|
||||
"fieldType": "String",
|
||||
"fieldValidateRules": [
|
||||
"required",
|
||||
"unique",
|
||||
"pattern"
|
||||
],
|
||||
"fieldValidateRulesPattern": "[a-z][a-z0-9]+"
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"relationshipType": "one-to-many",
|
||||
"otherEntityName": "membership",
|
||||
"otherEntityRelationshipName": "customer",
|
||||
"relationshipName": "membership"
|
||||
},
|
||||
{
|
||||
"relationshipType": "one-to-many",
|
||||
"otherEntityName": "customerContact",
|
||||
"otherEntityRelationshipName": "customer",
|
||||
"relationshipName": "role"
|
||||
}
|
||||
],
|
||||
"changelogDate": "20190403083735",
|
||||
"entityTableName": "customer",
|
||||
"dto": "mapstruct",
|
||||
"pagination": "infinite-scroll",
|
||||
"service": "serviceClass",
|
||||
"jpaMetamodelFiltering": true,
|
||||
"fluentMethods": true,
|
||||
"clientRootFolder": "",
|
||||
"applications": "*"
|
||||
}
|
40
.jhipster/CustomerContact.json
Normal file
40
.jhipster/CustomerContact.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "CustomerContact",
|
||||
"fields": [
|
||||
{
|
||||
"fieldName": "role",
|
||||
"fieldType": "CustomerContactRole",
|
||||
"fieldValues": "CONTRACTUAL,TECHNICAL,FINANCIAL",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"relationshipType": "many-to-one",
|
||||
"otherEntityName": "contact",
|
||||
"otherEntityRelationshipName": "role",
|
||||
"relationshipValidateRules": "required",
|
||||
"relationshipName": "contact",
|
||||
"otherEntityField": "email"
|
||||
},
|
||||
{
|
||||
"relationshipType": "many-to-one",
|
||||
"otherEntityName": "customer",
|
||||
"otherEntityRelationshipName": "role",
|
||||
"relationshipValidateRules": "required",
|
||||
"relationshipName": "customer",
|
||||
"otherEntityField": "prefix"
|
||||
}
|
||||
],
|
||||
"changelogDate": "20190403083737",
|
||||
"entityTableName": "customer_contact",
|
||||
"dto": "mapstruct",
|
||||
"pagination": "infinite-scroll",
|
||||
"service": "serviceClass",
|
||||
"jpaMetamodelFiltering": true,
|
||||
"fluentMethods": true,
|
||||
"clientRootFolder": "",
|
||||
"applications": "*"
|
||||
}
|
46
.jhipster/Membership.json
Normal file
46
.jhipster/Membership.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "Membership",
|
||||
"fields": [
|
||||
{
|
||||
"fieldName": "sinceDate",
|
||||
"fieldType": "LocalDate",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "untilDate",
|
||||
"fieldType": "LocalDate"
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"relationshipType": "one-to-many",
|
||||
"otherEntityName": "share",
|
||||
"otherEntityRelationshipName": "member",
|
||||
"relationshipName": "share"
|
||||
},
|
||||
{
|
||||
"relationshipType": "one-to-many",
|
||||
"otherEntityName": "asset",
|
||||
"otherEntityRelationshipName": "member",
|
||||
"relationshipName": "asset"
|
||||
},
|
||||
{
|
||||
"relationshipType": "many-to-one",
|
||||
"otherEntityName": "customer",
|
||||
"otherEntityRelationshipName": "membership",
|
||||
"relationshipName": "customer",
|
||||
"otherEntityField": "prefix"
|
||||
}
|
||||
],
|
||||
"changelogDate": "20190403083738",
|
||||
"entityTableName": "membership",
|
||||
"dto": "mapstruct",
|
||||
"pagination": "infinite-scroll",
|
||||
"service": "serviceClass",
|
||||
"jpaMetamodelFiltering": true,
|
||||
"fluentMethods": true,
|
||||
"clientRootFolder": "",
|
||||
"applications": "*"
|
||||
}
|
53
.jhipster/Share.json
Normal file
53
.jhipster/Share.json
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "Share",
|
||||
"fields": [
|
||||
{
|
||||
"fieldName": "date",
|
||||
"fieldType": "LocalDate",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "action",
|
||||
"fieldType": "ShareAction",
|
||||
"fieldValues": "SUBSCRIPTION,CANCELLATION",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "quantity",
|
||||
"fieldType": "Integer",
|
||||
"fieldValidateRules": [
|
||||
"required"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fieldName": "comment",
|
||||
"fieldType": "String",
|
||||
"fieldValidateRules": [
|
||||
"maxlength"
|
||||
],
|
||||
"fieldValidateRulesMaxlength": 160
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"relationshipType": "many-to-one",
|
||||
"otherEntityName": "membership",
|
||||
"otherEntityRelationshipName": "share",
|
||||
"relationshipName": "member",
|
||||
"otherEntityField": "id"
|
||||
}
|
||||
],
|
||||
"changelogDate": "20190403083739",
|
||||
"entityTableName": "share",
|
||||
"dto": "mapstruct",
|
||||
"pagination": "infinite-scroll",
|
||||
"service": "serviceClass",
|
||||
"jpaMetamodelFiltering": true,
|
||||
"fluentMethods": true,
|
||||
"clientRootFolder": "",
|
||||
"applications": "*"
|
||||
}
|
Reference in New Issue
Block a user