greycat icon indicating copy to clipboard operation
greycat copied to clipboard

Questions regarding import command in gcm

Open DataWorm opened this issue 8 years ago • 0 comments

Hello,

I found the import syntax in the gcm grammar but I haven't seen any description explaining what you can do with that command. But there are two seperate features I might be interested in and it might be one of those:

  • In a project I might be interested in using several models. For example a data-model to persist data, a datamodel during runtime and a frontend-model. I am interested in a second datamodel at runtime because some information are resetted to default values after restart (like what elements are selected/marked during this current session). For these and other situations I would probably define seperate models but create references between them or extend one model with the other one. Therefore it is nice if I can import other models.
  • I am interested in using further java classes in gcm like the Date class. Also until V11 I could possible try to define my own enums in java and import them into gcm. For sure databinding might not work when you use an imported class and make changes through setters within that class. Is there anything similar like a Date class or do I have to use Integer/String to represent a date (only the calendar day but no time)?

So is the import command for one of these things and if so: What follows on that import command? A filename or a classname with package?!

DataWorm avatar Sep 16 '17 04:09 DataWorm