Permalink
Browse files

Minor corrections.

  • Loading branch information...
1 parent 16e2612 commit b1726bd80b5e3d7850b3d01eceb4df54f4206cd5 Jan Stamer committed Feb 3, 2012
@@ -1,48 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jdbc="http://www.springframework.org/schema/jdbc"
- xsi:schemaLocation="http://www.springframework.org/schema/tx
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
+ xsi:schemaLocation="http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd">
- <jdbc:embedded-database id="dataSource" type="H2"/>
-
-<bean id="jpaDialect"
-class="org.springframework.orm.jpa.vendor.EclipseLinkJpaDialect" />
-
-<bean id="entityManagerFactory"
- class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
- <property name="dataSource" ref="dataSource" />
- <property name="persistenceUnitName" value="Accounts" />
- <property name="jpaDialect" ref="jpaDialect" />
- <property name="jpaVendorAdapter">
- <bean
- class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
- </bean>
- </property>
- <!--
- <property name="loadTimeWeaver">
- <bean class="org.springframework.instrument.classloading.SimpleLoadTimeWeaver" />
- </property>
- -->
-</bean>
-
- <bean id="helloWorld" class="com.pe_international.sample.service.HelloWorldImpl"/>
-
- <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
-
- <bean id="customerRepository" class="com.pe_international.sample.service.CustomerRepositoryImpl"/>
-
- <tx:annotation-driven/>
- <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- </bean>
+ <jdbc:embedded-database id="dataSource" type="H2" />
+
+ <bean id="jpaDialect" class="org.springframework.orm.jpa.vendor.EclipseLinkJpaDialect" />
+
+ <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
+ <property name="dataSource" ref="dataSource" />
+ <property name="persistenceUnitName" value="Accounts" />
+ <property name="jpaDialect" ref="jpaDialect" />
+ <property name="jpaVendorAdapter">
+ <bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
+ </bean>
+ </property>
+ <!-- <property name="loadTimeWeaver"> <bean class="org.springframework.instrument.classloading.SimpleLoadTimeWeaver" />
+ </property> -->
+ </bean>
+
+ <bean id="helloWorld" class="com.pe_international.sample.service.HelloWorldImpl" />
+
+ <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
+
+ <bean id="customerRepository" class="com.pe_international.sample.service.CustomerRepositoryImpl" />
+
+ <tx:annotation-driven />
+ <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
+ <property name="entityManagerFactory" ref="entityManagerFactory" />
+ </bean>
</blueprint>
@@ -1,26 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/tx
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
- <reference id="entityManagerFactory" interface="javax.persistence.EntityManagerFactory"/>
-
- <bean id="helloWorld" class="com.pe_international.sample.service.HelloWorldImpl"/>
-
- <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
-
- <bean id="customerRepository" class="com.pe_international.sample.service.CustomerRepositoryImpl"/>
- <service ref="customerRepository" auto-export="interfaces"/>
-
- <service ref="helloWorld" auto-export="interfaces"/>
-
- <tx:annotation-driven/>
- <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- </bean>
+ <reference id="entityManagerFactory" interface="javax.persistence.EntityManagerFactory" filter="(osgi.unit.name=Accounts)"
+ availability="mandatory" />
+
+ <bean id="helloWorld" class="com.pe_international.sample.service.HelloWorldImpl" />
+
+ <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
+
+ <bean id="customerRepository" class="com.pe_international.sample.service.CustomerRepositoryImpl" />
+ <service ref="customerRepository" auto-export="interfaces" />
+
+ <service ref="helloWorld" auto-export="interfaces" />
+
+ <tx:annotation-driven />
+ <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
+ <property name="entityManagerFactory" ref="entityManagerFactory" />
+ </bean>
</blueprint>
@@ -1,21 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframework.org/schema/data/jpa"
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xsi:schemaLocation="http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
- <reference id="entityManagerFactory" interface="javax.persistence.EntityManagerFactory"
- filter="(osgi.unit.name=Accounts)" availability="mandatory" />
+ <reference id="entityManagerFactory" interface="javax.persistence.EntityManagerFactory" filter="(osgi.unit.name=Accounts)"
+ availability="mandatory" />
<bean class="com.pe_international.sample.repository.spring.ExceptionTranslator">
<property name="transactionManager" ref="transactionManager" />
</bean>
- <bean
- class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
-
+ <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
<tx:annotation-driven />
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
@@ -26,8 +23,7 @@
<jpa:repository id="accountJpaRepository" />
</jpa:repositories>
- <bean id="accountRepository"
- class="com.pe_international.sample.repository.spring.AccountRepositoryImpl">
+ <bean id="accountRepository" class="com.pe_international.sample.repository.spring.AccountRepositoryImpl">
<property name="accountJpaRepository" ref="accountJpaRepository" />
</bean>
<service ref="accountRepository" auto-export="interfaces" />
@@ -7,8 +7,6 @@
*******************************************************************************/
package com.pe_international.sample.ui.account.view;
-import javax.swing.text.StyleContext.SmallAttributeSet;
-
import model.account.Account;
import org.slf4j.Logger;
@@ -55,6 +53,7 @@ public Component getView(Application application) {
if (view == null) {
final VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.setMargin(true);
+ verticalLayout.setSpacing(true);
table = new Table();
table.addContainerProperty("Customer", String.class, null);
@@ -63,6 +63,7 @@ public Component getView(Application application) {
if (view == null) {
final VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.setMargin(true);
+ verticalLayout.setSpacing(true);
table = new Table();
table.addContainerProperty("Name", String.class, null);

0 comments on commit b1726bd

Please sign in to comment.