Fórumok

RE: Problems trying to create a simple portlet that read the database

thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: Problems trying to create a simple portlet that read the database

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
direct database manipulation will normally not show up.

Liferay service builder implements caching on entities (check the attribute in service.xml, if not specifically disabled the entities are cached).

Counts are not cached, but individual entities are.

If you used your SB code to update the entity, the correct value would be displayed.

I question your use of portlet preferences as the mechanism for passing the value around; if it's already in the database, why make it also a portlet preference?
thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: Problems trying to create a simple portlet that read the db [SOLVED]

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Disabling the caching has performance impacts that you must be cognizant of...

Rather than disabling it, I'd suggest you route your updates through the API...