19 package org.turro.alliance.provider;
21 import org.turro.alliance.db.AlliancePU;
22 import org.turro.jpa.Dao;
23 import org.turro.server.db.entities.AxMemberPreferences;
24 import org.turro.sql.SqlClause;
25 import org.turro.util.Cached;
26 import org.turro.ws.WsMember;
39 if(preferences ==
null) {
40 preferences = SqlClause.select(
"p").from(
"AxMemberPreferences p")
44 if(preferences ==
null) {
54 return dao.get().saveObject(preferences);
59 private final Cached<Dao> dao = Cached.instance(() ->
new AlliancePU());
AxMemberPreferences getPreferences()
static Preferences of(WsMember member)
void setMemberId(Long memberId)