80 likes | 189 Views
Presentation. Development Approach. A reference model developed for an important use case (Air Job) including UI widgets , controllers , services and DAOs . After full requirement analysis Entities and DAO layer interfaces are finalized, and implemented.
E N D
Development Approach • A reference model developed for an important use case (Air Job) including UIwidgets, controllers, services and DAOs. • After full requirement analysis Entities and DAO layer interfaces are finalized, and implemented. • Individual was assigned use cases to construct both UI components and Service components.
Flow of Development Activities Requirement Gathering and Analysis Entity and DAO Implementation Continuous Integration and Test Design and Development Of Use Cases Reference application development Improvement And updates in Reference App
Hibernate (DAO Layer) • JPA with Hibernate 3 as persistence provider • DAOs are configured through Dependency Injection and participate in Spring's resource and transaction management. <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"><ref bean="sessionFactory"/></property> </bean> • Open Session In View Pattern • To prevent LazyInitializationException" while rendering the view • CascadeType.ALL • For all parent-children OneToMany relationships in the system, such as customer to suppliers, job to subjobs etc
Most popular open source Java reporting engine. • Jaspersoft iReport Designer 4.1.3 is used to design the 9 reports used in the system -> save us a lot of time • Easy Spring integration by configurating ViewResolver <bean id="pdfAirCosting" class="org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView"> <property name="url" value="/WEB-INF/reports/aircosting.jrxml" /> <property name="reportDataKey" value="datasource"/> </bean> • Spring framework automatically compiles the .jrxml file on the fly into .jasper file on server starts up • The Spring ModelAndView is populated with report parameters in order to render the report properly
Spring Framework's email support is used to send emails to simplify the e-mail sending process via JavaMail API. • Gmail SMTP server is used • Bean configuration file <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="smtp.gmail.com"/> <property name="port" value="25"/> <property name="username" value="www.cargo.pte.ltd@gmail.com"/> <property name="password" value=“…"/> <property name="javaMailProperties"> <props> … </props> </property>