rynojvr
rynojvr

Reputation: 567

Java EE project doesn't see database changes

I'm making a java ee project for class, and am having some issues with the database. When I load a page, it loads the information from the database correctly. If i modify that information on that page, and refresh, it works correctly. If i have the page open on one machine, and modify it on another machine, it does not work correctly.

~Thanks in advance.

P.S. It seems to have something to do with EclipseLink Caching the results. Could I turn it off?

Upvotes: 1

Views: 323

Answers (2)

Tim
Tim

Reputation: 715

As of July 2012 the property name to disable the EclipseLink shared cache has changed to

<property name="eclipselink.cache.type.default" value="None"/>

This should make Eclipse pick up database schema changes immediately.

Upvotes: 2

Matthias Bruns
Matthias Bruns

Reputation: 900

I was already thinking that it's about JPA so yes you can turn if off. Paste this code into your persistence.xml

<property name="eclipselink.cache.shared.default" value="false"/>

Read More

Upvotes: 1

Related Questions