In the Java Persistence API (JPA), the FetchType enum is used to specify the strategy for fetching data from the database.