hello,
I have a method that returns a list of items when I change the data in this
list in the database ,the return of the method does not take into account
this change.
  here is the configuration of  persistance.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd";>
  <persistence-unit name="persistancePU" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>com.csys.pointeuse2.model.AccessControl</class>
    <class>com.csys.pointeuse2.model.Accompagnantgouvernante</class>
    <class>com.csys.pointeuse2.model.Chambre</class>
    <class>com.csys.pointeuse2.model.Client</class>
    <class>com.csys.pointeuse2.model.EtatCha</class>
    <class>com.csys.pointeuse2.model.EtatChambre</class>
    <class>com.csys.pointeuse2.model.Etatmessage</class>
    <class>com.csys.pointeuse2.model.Messagechambre</class>
    <class>com.csys.pointeuse2.model.PrmEtage</class>
    <exclude-unlisted-classes>true</exclude-unlisted-classes>
    <shared-cache-mode>NONE</shared-cache-mode>
    <validation-mode>NONE</validation-mode>


    <properties>
      <property name="javax.persistence.jdbc.url"
value="jdbc:sqlserver://192.168.2.58:1415;databaseName=database"/>
      <property name="javax.persistence.jdbc.password" value="12355"/>
      <property name="javax.persistence.jdbc.driver"
value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
      <property name="javax.persistence.jdbc.user" value="ka"/>
    </properties>
  </persistence-unit>
</persistence>
thanks ...

Reply via email to