|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: |
------------------------------------------------------- applicationContext.xml
<?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:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!-- Hibernate (persistence) -->
<bean id="golfOnlineDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
--censored--
</bean>
<bean id="golfOnlineSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="golfOnlineDataSource"/>
<property name="mappingResources">
<list>
<value>com/GolfOnline/Hibernate/Course.hbm.xml</value>
<value>com/GolfOnline/Hibernate/GolferType.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.current_session_context_class">thread</prop>
<prop key="hibernate.connection.pool_size">0</prop>
<prop key="hibernate.dbcp.maxActive">15</prop>
<prop key="hibernate.dbcp.maxIdle">5</prop>
<prop key="hibernate.dbcp.maxWait">120000</prop>
<prop key="hibernate.dbcp.whenExhaustedAction">1</prop>
<prop key="hibernate.dbcp.testOnBorrow">true</prop>
<prop key="hibernate.dbcp.testOnReturn">true</prop>
<prop key="hibernate.dbcp.validationQuery">--censored--</prop>
<prop key="hibernate.dbcp.ps.maxActive">0</prop>
<prop key="hibernate.dbcp.ps.maxIdle">0</prop>
<prop key="hibernate.dbcp.ps.maxWait">-1</prop>
<prop key="hibernate.dbcp.ps.whenExhaustedAction">2</prop>
</props>
</property>
</bean>
<bean id="golfOnlineTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="golfOnlineSessionFactory"/>
</property>
</bean>
<!-- Service objects -->
<bean id="courseService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager"><ref local="golfOnlineTransactionManager"/></property>
<property name="target"><ref local="courseServiceTarget"/></property>
<property name="transactionAttributes">
<props>
<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="search*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="check*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="add*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="delete*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<!-- Service target objects -->
<bean id="courseServiceTarget" class="com.GolfOnline.Services.CourseServiceImpl">
<property name="courseDAO"><ref local="courseDAO"/></property>
<property name="golferTypeDAO"><ref local="golferTypeDAO"/></property>
</bean>
<!-- DAO objects -->
<bean id="courseDAO" class="com.GolfOnline.DAOs.CourseDAOImpl">
<property name="sessionFactory" ref="golfOnlineSessionFactory"/>
</bean>
<bean id="golferTypeDAO" class="com.GolfOnline.DAOs.GolferTypeDAOImpl">
<property name="sessionFactory" ref="golfOnlineSessionFactory"/>
</bean>
</beans>
------------------------------------------------------- course.hbm
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.GolfOnline.Beans.Course" table="tbl_Course">
<id column="cr_ID" name="id" type="short">
<generator class="native"/>
</id>
<property column="cr_Name" name="name"/>
</class>
</hibernate-mapping>
------------------------------------------------------- golfertype.hbm
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.GolfOnline.Beans.GolferType" table="tbl_GolferType">
<id column="gt_ID" name="id" type="short">
<generator class="native"/>
</id>
<many-to-one class="com.GolfOnline.Beans.Course" column="gt_Course_cr_ID" name="course"/>
<property column="gt_Title" name="title"/>
</class>
</hibernate-mapping>
|
Advertisement
| Hall of Fame |