Get association value

I have two non persist entities Employee and department with an association, I am trying to add new employee but When I come to select the department as reference selector I found that the attribute not acceptable to been apply for that widget, I need to select department, So how can I solve this?
2 answers

Hello Abdallah,


It is because the entity Department is non-persistent. Change it to persistent.


Go make it




Due to limitations, like reference selector, etc., suggest to use persistable entities only where you need them, don’t commit your changes and avoid any auto-commit actions. Ideally, rollback all changes if you don’t need those objects in memory any longer. Enabling entity persistence will create table(s) in the database, however no data will be saved for as long as it’s not (auto-) committed.

Consider posting your idea to extend reference selector for non-persistable entities.