You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While adding entity configurations for #199, I have hit an error with the following JDL:
relationship OneToOne {
Employee{user(login)} to User with jpaDerivedIdentifier
}
I suspect this may be an issue with Micronaut Data or Hibernate, but some more research is needed to be sure. I wanted to log this as a separate issue as not to hold up #213 longer than needed.
Reproduce the error
Generate a project with provided JDL and run ./mvnw integration-test
relationship OneToOne {
Department{location} to Location,
Employee{user(login)} to User with jpaDerivedIdentifier
}
relationship OneToMany {
BankAccount{operation} to Operation{bankAccount(name)}
}
relationship ManyToOne {
BankAccount{user(login)} to User
}
relationship ManyToMany {
Operation{theLabel(labelName)} to TheLabel{operation}
}
relationship OneToMany {
/**
A relationship /
Department{employee} to
/*
Another side of the same relationship,
*/
Employee{department},
Employee{job} to Job{emp(lastName)},
Location{country} to Country,
Country{area(name)} to Region
}
relationship ManyToOne {
Employee{manager(lastName)} to Employee,
Employee{sibag(name) required} to SilverBadge,
Employee{gobag(name) required} to GoldenBadge,
SilverBadge{iden(name) required} to Identifier,
GoldenBadge{iden(name) required} to Identifier
}
relationship ManyToMany {
JobHistory{department} to Department{history},
JobHistory{job} to Job{history},
JobHistory{emp(firstName)} to Employee{history},
Job{chore(title)} to Task{linkedJob(title)},
Bank{bankAccount} to BankAccount{bank}
}
Overview of the issue
While adding entity configurations for #199, I have hit an error with the following JDL:
I suspect this may be an issue with Micronaut Data or Hibernate, but some more research is needed to be sure. I wanted to log this as a separate issue as not to hold up #213 longer than needed.
Reproduce the error
Generate a project with provided JDL and run
./mvnw integration-test
Project configuration
JDL definitions
*/
entity JobHistory {
startDate ZonedDateTime,
endDate ZonedDateTime,
language Language
}
enum Language {
FRENCH, ENGLISH, SPANISH
}
enum JobType {
BOSS, SLAVE
}
entity Job {
title String minlength(5) maxlength(25),
type JobType,
minSalary Long,
maxSalary Long
}
/**
/
entity Employee {
/*
*/
firstName String,
lastName String,
email String,
phoneNumber String,
hireDate ZonedDateTime,
salary Long,
commissionPct Long
}
entity Location {
streetAddress String,
postalCode String,
city String,
stateProvince String
}
entity Task {
title String,
description String
}
entity GoldenBadge {
name String
}
entity SilverBadge {
name String
}
entity Identifier {
name String required unique
}
entity Country {
name String
}
entity Region {
name String
}
relationship OneToOne {
Department{location} to Location,
Employee{user(login)} to User with jpaDerivedIdentifier
}
relationship OneToMany {
BankAccount{operation} to Operation{bankAccount(name)}
}
relationship ManyToOne {
BankAccount{user(login)} to User
}
relationship ManyToMany {
Operation{theLabel(labelName)} to TheLabel{operation}
}
relationship OneToMany {
/**
/
Department{employee} to
/*
*/
Employee{department},
Employee{job} to Job{emp(lastName)},
Location{country} to Country,
Country{area(name)} to Region
}
relationship ManyToOne {
Employee{manager(lastName)} to Employee,
Employee{sibag(name) required} to SilverBadge,
Employee{gobag(name) required} to GoldenBadge,
SilverBadge{iden(name) required} to Identifier,
GoldenBadge{iden(name) required} to Identifier
}
relationship ManyToMany {
JobHistory{department} to Department{history},
JobHistory{job} to Job{history},
JobHistory{emp(firstName)} to Employee{history},
Job{chore(title)} to Task{linkedJob(title)},
Bank{bankAccount} to BankAccount{bank}
}
dto BankAccount, Employee, Department, Location, Country, Region, SilverBadge, GoldenBadge, Identifier with mapstruct
angularSuffix BankAccount with mySuffix
// filter BankAccount, Employee
clientRootFolder BankAccount, TheLabel, Operation with test-root
paginate TheLabel, Job with pagination
paginate Operation, JobHistory, Employee with infinite-scroll
service TheLabel, Employee, Department, Region with serviceClass
service BankAccount, Location, Country with serviceImpl
The text was updated successfully, but these errors were encountered: