|
74 | 74 | * <li>{@linkplain #setProperty(String, String) configuration properties} |
75 | 75 | * from various sources, and |
76 | 76 | * <li>entity O/R mappings, defined in either {@linkplain #addAnnotatedClass |
77 | | - * annotated classes}, or {@linkplain #addFile XML mapping documents}. |
| 77 | + * annotated classes}, or {@linkplain #addFile XML mapping documents}. |
78 | 78 | * </ul> |
79 | 79 | * <p> |
80 | 80 | * Note that XML mappings may be expressed using the JPA {@code orm.xml} |
81 | 81 | * format, or in Hibernate's legacy {@code .hbm.xml} format. |
82 | 82 | * <p> |
83 | 83 | * Configuration properties are enumerated by {@link AvailableSettings}. |
| 84 | + * <p> |
| 85 | + * When instantiated, an instance of {@code Configuration} has its properties |
| 86 | + * initially populated from the {@linkplain Environment#getProperties() |
| 87 | + * environment}, including: |
| 88 | + * <ul> |
| 89 | + * <li>JVM {@linkplain System#getProperties() system properties}, and |
| 90 | + * <li>properties specified in {@code hibernate.properties}. |
| 91 | + * </ul> |
| 92 | + * <p> |
| 93 | + * These initial properties may be completely discarded by calling |
| 94 | + * {@link #setProperties(Properties)}, or they may be overridden |
| 95 | + * individually by calling {@link #setProperty(String, String)}. |
| 96 | + * <p> |
84 | 97 | * <pre> |
85 | | - * SessionFactory factory = new Configuration() |
| 98 | + * SessionFactory factory = new Configuration() |
86 | 99 | * // scan classes for mapping annotations |
87 | 100 | * .addAnnotatedClass(Item.class) |
88 | 101 | * .addAnnotatedClass(Bid.class) |
|
0 commit comments