jhipster / jdl-studio

JDL Studio is an online JHipster Domain Language visual editor
https://start.jhipster.tech/jdl-studio/
Apache License 2.0
405 stars 114 forks source link

MismatchedTokenException when using "with jpaDerivedIdentifier" #65

Closed jbwtan closed 4 years ago

jbwtan commented 5 years ago

When trying out the sample jdl snippet from "https://www.jhipster.tech/jdl/#jdlrelationships:"

entity Citizen
entity Passport
relationship OneToOne {
  Citizen to Passport
}

// using @MapsId
relationship OneToOne {
      Citizen to Passport with jpaDerivedIdentifier 
}

and adding this at "https://start.jhipster.tech/jdl-studio/#!/view/" I receive a MismatchedTokenException: Expecting --> 'to' <-- but found --> 'jpaDerivedIdentifier' <-- at line: 9, column: 26

abiieez commented 5 years ago

I am getting the same problem. It might be invalid on the studio, but works fine during jdl import.

mozartf commented 5 years ago

Just tried using import. It doesn't work.

hfcipriano commented 5 years ago

The same problem with me.

I tried to ignore error message and i created with success the app but another error happened.

My mapping: "Aluno{usuario} to User with jpaDerivedIdentifier "

the generated code in AlunoResource referenced User as user, instead usuario (real attribute)

After this i remove the attribute name and worked.

ehyko commented 4 years ago

Hi, is anyone looking into this?

maherbel commented 4 years ago

Any news on this ? I'm having the same issue on the studio..

angelo24983 commented 4 years ago

issue still there