ޟ ޟ persistence.xml

؟ , Eclipse ޟ ޟ META-INF\persistence.xml .

ޟ ؞ ޟ persistence.xml META-INF ؟ JPA ( "؟ JPA"). ޟ ޟ ޟ ؟ ޟ ؟ XML ( ) ޟ ؟ persistence.xml.


ޟ:

JPA ( , EclipseLink), ݝ ޟ ؟ persistence.xml:

JPA EclipseLink, ݝ כ ݝ JDBC.

ޟ , , ϣ, ޟ .


؟ persistence.xml:

  1. ޟ peristence.xml. ؟ .

  2. <persistent-unit> ޟ persistence.xml ޟ <provider> <class> ( ).


    :

    ؟ persistence.xml ޟ XML.

    ޟ
    . <persistence-unit name = "<>">
    . <provider>
    . ޟ . <description>
    ޟ ޟ ؟ . <class>
          כ   כ . <exclude-unlisted-classes>
    ޟ  XML ޟ XML ޟ ؟ . <mapping-file>
    ޟ JAR  ޟ JAR

  3. ϣ ޟ <jta-data-source> <non-jta-data-source> :

    JTA (Java Transaction API) ޟ :

    1. JTA ؞.

    2. JNDI .

    ޟ JTA:

    1. ؞.

    2. JNDI .


      ޟ:

      Default() .

    , ޟ ݞ ݝ EclipseLink, ݞ ݝ, ޣ URL, .

  4. ޟ <properties> .

    ޟ <property>:

    1. .

    2. <name> <value> ޟ <property> ݟ .

    ޟ <property>, ֟.


    ޟ:

    ޟ EclipseLink, כ ݝ JDBC.



؟ persistence.xml

 




 



ޟ persistence.xml