Browse Source
Started work on database integration. Cleaned up caching of thumbnails and improved performance of the thumb path method.
master
Started work on database integration. Cleaned up caching of thumbnails and improved performance of the thumb path method.
master
Drew Short
11 years ago
6 changed files with 174 additions and 121 deletions
-
23pom.xml
-
5src/main/resources/application.conf
-
34src/main/resources/hibernate.cfg.xml
-
23src/main/scala/com/sothr/imagetools/image/ImageService.scala
-
5src/test/resources/application.conf
-
7todo
@ -0,0 +1,34 @@ |
|||
<?xml version='1.0' encoding='utf-8'?> |
|||
<!DOCTYPE hibernate-configuration PUBLIC |
|||
"-//Hibernate/Hibernate Configuration DTD//EN" |
|||
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|||
<hibernate-configuration> |
|||
<!-- a SessionFactory instance listed as /jndi/name --> |
|||
<session-factory |
|||
name="java:hibernate/SessionFactory"> |
|||
|
|||
<!-- properties --> |
|||
<property name="connection.driver_class">org.h2.Driver</property> |
|||
<property name="connection.datasource">jdbc:h2:.cache/database.db</property> |
|||
<property name="dialect">org.hibernate.dialect.H2Dialect</property> |
|||
<property name="show_sql">false</property> |
|||
<property name="transaction.factory_class"> |
|||
org.hibernate.transaction.JTATransactionFactory |
|||
</property> |
|||
<property name="jta.UserTransaction">java:comp/UserTransaction</property> |
|||
|
|||
<!-- Enable Hibernate's automatic session context management --> |
|||
<property name="current_session_context_class">thread</property> |
|||
|
|||
<!-- Disable the second-level cache --> |
|||
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|||
|
|||
<!-- mapping files --> |
|||
<!--<mapping resource="hibernate/"/>--> |
|||
|
|||
<!-- cache settings --> |
|||
<!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/> |
|||
<class-cache class="org.hibernate.auction.Bid" usage="read-only"/> |
|||
<collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>--> |
|||
</session-factory> |
|||
</hibernate-configuration> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue