Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 1.55 KB

README.md

File metadata and controls

49 lines (42 loc) · 1.55 KB

HCF Maven Central

HCF is a generic DAO for database persistence.

Dependency Management

<dependencies>
    ...
    <dependency>
        <groupId>io.github.eduardo-karpinski</groupId>
        <artifactId>hcf-core</artifactId>
        <version>1.0.2</version>
    </dependency>
    ...
</dependencies>

hibernate.properties

# example hibernate.properties
# mysql database used for reference
# property hibernate.c3p0 need hibernate-c3p0 dependency to work

# hibernate
hibernate.connection.username=user
hibernate.connection.password=pass
hibernate.connection.driver_class=com.mysql.cj.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:3306/db?useTimezone=true&serverTimezone=America/Sao_Paulo
# c3p0
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=10
hibernate.c3p0.timeout=3000
hibernate.c3p0.max_statements=30
# others
hibernate.hbm2ddl.auto=update
hibernate.session.events.log.LOG_QUERIES_SLOWER_THAN_MS=500

HCF Wiki

https://github.com/Eduardo-Karpinski/hcf/wiki

Built with

Authors

  • Eduardo W. K. Priester - developer - github

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details