Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Persistence.xml file

Hello EclipseLinkTeam
I have my eclipselink persistence.xml file listed as below.
 
How does the application find all the entities without being specified with <class></class> tags in my peristence.xml file?
 
What does <exclude-unlisted-classes> does?
 
Thanks in advance!
 
 

<?xml version="1.0" encoding="UTF-8"?>

<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

<persistence-unit name="Testing" transaction-type="RESOURCE_LOCAL">

<exclude-unlisted-classes>false</exclude-unlisted-classes>

</persistence-unit>

</persistence>
 
All the other properties are populated at run time using syntax like this
 

properties.put(PersistenceUnitProperties.TARGET_DATABASE,

PropertyManager.getProperty("persistence.target_database"));
 
 


f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng


Back to the top