-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to lazy load articles(nodes) from specific user.
- Loading branch information
jam_0917@sina.com
authored and
jam_0917@sina.com
committed
Jan 4, 2013
1 parent
ed7b7be
commit c8d3f01
Showing
24 changed files
with
273 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans | ||
xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:p="http://www.springframework.org/schema/p" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" | ||
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | ||
http://www.springframework.org/schema/tx | ||
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context-3.0.xsd | ||
"> | ||
|
||
<!-- Annotation driven --> | ||
<context:annotation-config/> | ||
<!--Component load based--> | ||
<context:component-scan base-package="com.hywang.timeline"/> | ||
<context:annotation-config /> | ||
|
||
<!--Component load based --> | ||
<context:component-scan base-package="com.hywang.timeline" /> | ||
|
||
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" | ||
destroy-method="close"> | ||
<property name="driverClass" value="org.gjt.mm.mysql.Driver" /> | ||
<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/timeline"/> | ||
<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/timeline" /> | ||
<property name="user" value="root" /> | ||
<property name="password" value="root" /> | ||
</bean> | ||
|
||
|
||
|
||
|
||
|
||
<bean id="sessionFactory" | ||
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> | ||
<property name="dataSource" ref="dataSource" /> | ||
<property name="mappingLocations" value="classpath:/com/hywang/timeline/persistence/hbm/*.hbm.xml"/> | ||
<property name="mappingLocations" | ||
value="classpath:/com/hywang/timeline/persistence/hbm/*.hbm.xml" /> | ||
<property name="schemaUpdate" value="false" /> | ||
<property name="hibernateProperties"> | ||
<props> | ||
<prop key="hibernate.query.substitutions"> true 1, false 0, yes 'Y', no 'N'</prop> | ||
<prop key="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</prop> | ||
<prop key="hibernate.query.substitutions"> true 1, false 0, yes 'Y', no 'N'</prop> | ||
<prop key="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</prop> | ||
<prop key="hibernate.validator.apply_to_ddl">false</prop> | ||
<prop key="hibernate.validator.autoregister_listeners">false</prop> | ||
<prop key="hibernate.validator.autoregister_listeners">false</prop> | ||
<prop key="hibernate.format_sql">false</prop> | ||
<prop key="hibernate.max_fetch_depth">0</prop> | ||
<prop key="hibernate.show_sql">true</prop> | ||
<prop key="hibernate.use_sql_comments">false</prop> | ||
<prop key="hibernate.current_session_context_class">thread</prop> | ||
<prop key="hibernate.current_session_context_class">thread</prop> | ||
</props> | ||
</property> | ||
</bean> | ||
|
||
<bean id="logger" class="com.hywang.timeline.utils.time.TimeMeasureLoggerImpl"></bean> | ||
</bean> | ||
|
||
<bean id="txManager" | ||
class="org.springframework.orm.hibernate3.HibernateTransactionManager"> | ||
<property name="sessionFactory" ref="sessionFactory" /> | ||
</bean> | ||
|
||
<tx:annotation-driven transaction-manager="txManager" /> | ||
|
||
<bean id="timeMeasure" class="com.hywang.timeline.utils.time.TimeMeasure"> | ||
<property name="logger" ref="logger"></property> | ||
<property name="logger" ref="logger"></property> | ||
</bean> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
timeLine/src/com/hywang/timeline/persistence/dao/HibernateDAO.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.