DeviceRole
was changed to the Ebean model- Unfortunately handling forms with checkboxes requires using transient field like
rolesIds
inDevice
model... If I'll find better way I'll let you know - Now you can use it as
ManyToMany
relation, also search in both directions, seehttp://localhost:9000/roles/
- Check
Global
class to see how roles are copied from enum to DB, anyway using the MM relation you can resign from this enum at all and maybe add some edit form to manage role(s) - finally take a look how to reuse
editView
andDevices.update()
action for both - adding and editing the devices (no need for repeating ie. error handling etc)
-
Notifications
You must be signed in to change notification settings - Fork 2
luukjansen/temperature-control
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A small Play project to collect temperature data and make switching decisions using Raspberry PI
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published