@Configuration
public class DAOConfig {
@Bean
public UserDAO userDAO() {
return new UserDAO();
}
}
<bean id="userDAO" class="com.example.dao.UserDAO">
<!-- конфигурация bean UserDAO -->
</bean>
CREAT INDEX index_name ON tablename (column_name DESC NULLS LAST)
CLUSTER tablename USING index_name