concept @Table in category hibernate

appears as: @Table
Java Persistence with Hibernate, Second Edition

This is an excerpt from Manning's book Java Persistence with Hibernate, Second Edition.

Let’s first talk about the naming of entity classes and tables. If you only specify @Entity on the persistence-capable class, the default mapped table name is the same as the class name. Note that we write SQL artifact names in UPPERCASE to make them easier to distinguish—SQL is actually case insensitive. So the Java entity class Item maps to the ITEM table. You can override the table name with the JPA @Table annotation, as shown next.

Listing 4.3. @Table annotation overrides the mapped table name

Path: /model/src/main/java/org/jpwh/model/simple/User.java

@Entity
@Table(name = "USERS")
public class User implements Serializable {
<enter/>
    // ...
}
!@%STYLE%@!
{"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":0,\"ch\":0},{\"line\":0,\"ch\":7}],[{\"line\":1,\"ch\":0},{\"line\":1,\"ch\":6}]]"}
!@%STYLE%@!