mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-5947 Clarifying the documentation
This commit is contained in:
parent
9d697660f6
commit
cf9391f40d
@ -210,7 +210,7 @@ public class Dog { ... }</programlisting>
|
||||
affect the database schemas exported by the schema export tool (for
|
||||
example, the <literal> not-null</literal> attribute).</para>
|
||||
|
||||
<section id="mapping-declaration-class" revision="3">
|
||||
<section id="mapping-declaration-class" revision="4">
|
||||
<title>Entity</title>
|
||||
|
||||
<para>An entity is a regular Java object (aka POJO) which will be
|
||||
@ -257,6 +257,14 @@ public class Flight implements Serializable {
|
||||
defined before the Hibernate <classname>NamingStrategy</classname> is
|
||||
applied.</para>
|
||||
|
||||
<tip>
|
||||
<para>Be sure to use the database-level column names for the <literal>columnNames</literal>
|
||||
property of a <literal>@UniqueConstraint</literal>. For example, whilst for simple types the
|
||||
database-level column name may be the same as the entity-level property name, this is often
|
||||
not the case for relational types.
|
||||
</para>
|
||||
</tip>
|
||||
|
||||
<para><literal>@Entity.name</literal> lets you define the shortcut name
|
||||
of the entity you can used in JP-QL and HQL queries. It defaults to the
|
||||
unqualified class name of the class.</para>
|
||||
|
Loading…
x
Reference in New Issue
Block a user