<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Getting Started With JPA in Spring 2.0</title>
	<atom:link href="http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/</link>
	<description>The voice of SpringSource</description>
	<pubDate>Wed, 17 Mar 2010 05:29:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: werwuifi</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-167236</link>
		<dc:creator>werwuifi</dc:creator>
		<pubDate>Mon, 08 Jun 2009 14:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-167236</guid>
		<description>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
	
&lt;beans&gt;
	
	&lt;description&gt;
		testContext used from within unit tests
	&lt;/description&gt;
	
	&lt;bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
 		&lt;property name="location" value="classpath:META-INF/spring.properties.test"/&gt;
 	&lt;/bean&gt;

	&lt;!-- uses the persistence unit defined in the META-INF/persistence.xml JPA configuration file --&gt;
	&lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
		&lt;property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" /&gt;
		&lt;property name="dataSource" ref="dataSource"/&gt;
		&lt;property name="jpaVendorAdapter"&gt;
			&lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt;
				&lt;property name="showSql" value="true"/&gt;
				&lt;property name="generateDdl" value="true"/&gt;
				&lt;property name="databasePlatform" value="org.hibernate.dialect.OracleDialect"/&gt;
			&lt;/bean&gt;
		&lt;/property&gt;
&lt;!--		&lt;property name="loadTimeWeaver"&gt;--&gt;
&lt;!--      		&lt;bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver"/&gt;--&gt;
&lt;!--    	&lt;/property&gt;--&gt;
	&lt;/bean&gt;

	&lt;!-- transaction manager for use with a single JPA EntityManagerFactory for transactional data access to a single datasource --&gt;
	&lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt;
		&lt;property name="entityManagerFactory" ref="entityManagerFactory"/&gt;
		&lt;property name="dataSource" ref="dataSource" /&gt;
		&lt;!-- 
		&lt;property name="jpaDialect"&gt;
			&lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" /&gt;
		&lt;/property&gt;
		 --&gt;
	&lt;/bean&gt;

	&lt;!--
		- defines the dataSource as local test or development resource configured to properties from property placeholder
	--&gt;
	&lt;bean id="localDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close"&gt;
&lt;!--	&lt;bean id="localDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;--&gt;
		&lt;property name="driverClassName" value="${dataSource.driverClassName}" /&gt;
		&lt;property name="url" value="${dataSource.url}" /&gt;
		&lt;property name="username" value="${dataSource.username}" /&gt;
		&lt;property name="password" value="${dataSource.password}" /&gt;
&lt;!--		&lt;property name="accessToUnderlyingConnectionAllowed" value="true" /&gt;--&gt;
	&lt;/bean&gt;
	
	
	&lt;alias name="localDataSource" alias="dataSource"&gt;&lt;/alias&gt;


&lt;/beans&gt;</description>
		<content:encoded><![CDATA[<p>&lt;?xml version=&#034;1.0&#034; encoding=&#034;UTF-8&#034;?&gt;</p>
<p>&lt;beans&gt;</p>
<p>	&lt;description&gt;<br />
		testContext used from within unit tests<br />
	&lt;/description&gt;</p>
<p>	&lt;bean id=&#034;propertyConfigurer&#034; class=&#034;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#034;&gt;<br />
 		&lt;property name=&#034;location&#034; value=&#034;classpath:META-INF/spring.properties.test&#034;/&gt;<br />
 	&lt;/bean&gt;</p>
<p>	&lt;!&#8211; uses the persistence unit defined in the META-INF/persistence.xml JPA configuration file &#8211;&gt;<br />
	&lt;bean id=&#034;entityManagerFactory&#034; class=&#034;org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean&#034;&gt;<br />
		&lt;property name=&#034;persistenceXmlLocation&#034; value=&#034;classpath:META-INF/persistence.xml&#034; /&gt;<br />
		&lt;property name=&#034;dataSource&#034; ref=&#034;dataSource&#034;/&gt;<br />
		&lt;property name=&#034;jpaVendorAdapter&#034;&gt;<br />
			&lt;bean class=&#034;org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter&#034;&gt;<br />
				&lt;property name=&#034;showSql&#034; value=&#034;true&#034;/&gt;<br />
				&lt;property name=&#034;generateDdl&#034; value=&#034;true&#034;/&gt;<br />
				&lt;property name=&#034;databasePlatform&#034; value=&#034;org.hibernate.dialect.OracleDialect&#034;/&gt;<br />
			&lt;/bean&gt;<br />
		&lt;/property&gt;<br />
&lt;!&#8211;		&lt;property name=&#034;loadTimeWeaver&#034;&gt;&#8211;&gt;<br />
&lt;!&#8211;      		&lt;bean class=&#034;org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver&#034;/&gt;&#8211;&gt;<br />
&lt;!&#8211;    	&lt;/property&gt;&#8211;&gt;<br />
	&lt;/bean&gt;</p>
<p>	&lt;!&#8211; transaction manager for use with a single JPA EntityManagerFactory for transactional data access to a single datasource &#8211;&gt;<br />
	&lt;bean id=&#034;transactionManager&#034; class=&#034;org.springframework.orm.jpa.JpaTransactionManager&#034;&gt;<br />
		&lt;property name=&#034;entityManagerFactory&#034; ref=&#034;entityManagerFactory&#034;/&gt;<br />
		&lt;property name=&#034;dataSource&#034; ref=&#034;dataSource&#034; /&gt;<br />
		&lt;!&#8211;<br />
		&lt;property name=&#034;jpaDialect&#034;&gt;<br />
			&lt;bean class=&#034;org.springframework.orm.jpa.vendor.HibernateJpaDialect&#034; /&gt;<br />
		&lt;/property&gt;<br />
		 &#8211;&gt;<br />
	&lt;/bean&gt;</p>
<p>	&lt;!&#8211;<br />
		- defines the dataSource as local test or development resource configured to properties from property placeholder<br />
	&#8211;&gt;<br />
	&lt;bean id=&#034;localDataSource&#034; class=&#034;org.springframework.jdbc.datasource.DriverManagerDataSource&#034; destroy-method=&#034;close&#034;&gt;<br />
&lt;!&#8211;	&lt;bean id=&#034;localDataSource&#034; class=&#034;org.apache.commons.dbcp.BasicDataSource&#034; destroy-method=&#034;close&#034;&gt;&#8211;&gt;<br />
		&lt;property name=&#034;driverClassName&#034; value=&#034;${dataSource.driverClassName}&#034; /&gt;<br />
		&lt;property name=&#034;url&#034; value=&#034;${dataSource.url}&#034; /&gt;<br />
		&lt;property name=&#034;username&#034; value=&#034;${dataSource.username}&#034; /&gt;<br />
		&lt;property name=&#034;password&#034; value=&#034;${dataSource.password}&#034; /&gt;<br />
&lt;!&#8211;		&lt;property name=&#034;accessToUnderlyingConnectionAllowed&#034; value=&#034;true&#034; /&gt;&#8211;&gt;<br />
	&lt;/bean&gt;</p>
<p>	&lt;alias name=&#034;localDataSource&#034; alias=&#034;dataSource&#034;&gt;&lt;/alias&gt;</p>
<p>&lt;/beans&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: werwuifi</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-167235</link>
		<dc:creator>werwuifi</dc:creator>
		<pubDate>Mon, 08 Jun 2009 14:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-167235</guid>
		<description>hey,

great article, however im running into a NoSuchMethodError caused by org.slf4j.Logger.trace (in Hibernate ClassValidator.getDefaultResourceBundle()).
Anyone ever came across a similar problem?!?

That's my testContext.xml:



	

	
	
		testContext used from within unit tests
	
	
	
 		
 	

	&lt;!-- uses the persistence unit defined in the META-INF/persistence.xml JPA configuration file --&gt;
	
		
		
		
			
				
				
				
			
		
&lt;!--		--&gt;
&lt;!--      		--&gt;
&lt;!--    	--&gt;
	

	&lt;!-- transaction manager for use with a single JPA EntityManagerFactory for transactional data access to a single datasource --&gt;
	
		
		
		&lt;!-- 
		
			
		
		 --&gt;
	

	
	
&lt;!--	--&gt;
		
		
		
		
&lt;!--		--&gt;
	
	
	
	




Thx for any suppport!

w</description>
		<content:encoded><![CDATA[<p>hey,</p>
<p>great article, however im running into a NoSuchMethodError caused by org.slf4j.Logger.trace (in Hibernate ClassValidator.getDefaultResourceBundle()).<br />
Anyone ever came across a similar problem?!?</p>
<p>That&#039;s my testContext.xml:</p>
<p>		testContext used from within unit tests</p>
<p>	<!-- uses the persistence unit defined in the META-INF/persistence.xml JPA configuration file --></p>
<p>&lt;!&#8211;		&#8211;&gt;<br />
&lt;!&#8211;      		&#8211;&gt;<br />
&lt;!&#8211;    	&#8211;&gt;</p>
<p>	<!-- transaction manager for use with a single JPA EntityManagerFactory for transactional data access to a single datasource --></p>
<p>		&lt;!&#8211; </p>
<p>		 &#8211;&gt;</p>
<p>&lt;!&#8211;	&#8211;&gt;</p>
<p>&lt;!&#8211;		&#8211;&gt;</p>
<p>Thx for any suppport!</p>
<p>w</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Deinum</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-167148</link>
		<dc:creator>Marten Deinum</dc:creator>
		<pubDate>Fri, 29 May 2009 06:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-167148</guid>
		<description>@Bruno that is clarified in the release notes of 2.5
Spring-jpa.jar == spring-orm.jar
spring-mock.jar == spring-test.jar</description>
		<content:encoded><![CDATA[<p>@Bruno that is clarified in the release notes of 2.5<br />
Spring-jpa.jar == spring-orm.jar<br />
spring-mock.jar == spring-test.jar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-167144</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Thu, 28 May 2009 22:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-167144</guid>
		<description>Great article.  Even after all this time, it is the clearest JPA 'getting started' document out there.

Unfortunately I am using Spring 2.5 and it looks like spring-jpa.jar and spring-mock.jar are no longer easy to find.  Presumably they have been absorbed into spring.jar, and I see a bunch of *.orm.jpa.* classes there, but I get java.lang.ClassNotFoundException: org.springframework.orm.jpa.ContainerEntityManagerFactoryBean.

Any idea about where I might find the missing JARs?  Or perhaps the Class has been replaced by something else?

Or... is there a version of your article updated for Spring 2.5?</description>
		<content:encoded><![CDATA[<p>Great article.  Even after all this time, it is the clearest JPA &#039;getting started&#039; document out there.</p>
<p>Unfortunately I am using Spring 2.5 and it looks like spring-jpa.jar and spring-mock.jar are no longer easy to find.  Presumably they have been absorbed into spring.jar, and I see a bunch of *.orm.jpa.* classes there, but I get java.lang.ClassNotFoundException: org.springframework.orm.jpa.ContainerEntityManagerFactoryBean.</p>
<p>Any idea about where I might find the missing JARs?  Or perhaps the Class has been replaced by something else?</p>
<p>Or&#8230; is there a version of your article updated for Spring 2.5?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ondra Žižka</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-134586</link>
		<dc:creator>Ondra Žižka</dc:creator>
		<pubDate>Fri, 26 Dec 2008 01:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-134586</guid>
		<description>

Shouldn't there be "LocalContainerEntityManagerFactoryBean"?</description>
		<content:encoded><![CDATA[<p>Shouldn&#039;t there be &#034;LocalContainerEntityManagerFactoryBean&#034;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ideyatech</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-127795</link>
		<dc:creator>ideyatech</dc:creator>
		<pubDate>Thu, 06 Nov 2008 03:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-127795</guid>
		<description>i have an article regarding spring transactions on JPA
http://www.ideyatech.com/2008/09/troubleshooting-tips-spring-transactions-on-jpa/</description>
		<content:encoded><![CDATA[<p>i have an article regarding spring transactions on JPA<br />
<a href="http://www.ideyatech.com/2008/09/troubleshooting-tips-spring-transactions-on-jpa/" rel="nofollow">http://www.ideyatech.com/2008/09/troubleshooting-tips-spring-transactions-on-jpa/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using JPA with Spring 2.0 or the Java Agent issue &#171; Programming and So</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-127082</link>
		<dc:creator>Using JPA with Spring 2.0 or the Java Agent issue &#171; Programming and So</dc:creator>
		<pubDate>Fri, 31 Oct 2008 08:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-127082</guid>
		<description>[...] with Spring 2.0 or the Java Agent&#160;issue Posted by angelborroy under java &#160;  Maybe this article is the main reference about JPA in Spring 2.0. It&#8217;s a great resource to start playing with [...]</description>
		<content:encoded><![CDATA[<p>[...] with Spring 2.0 or the Java Agent&nbsp;issue Posted by angelborroy under java &nbsp;  Maybe this article is the main reference about JPA in Spring 2.0. It&#039;s a great resource to start playing with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Test blog &#187; Blog Archive &#187; Spring JPA and hibernate</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-127007</link>
		<dc:creator>Jerry Test blog &#187; Blog Archive &#187; Spring JPA and hibernate</dc:creator>
		<pubDate>Thu, 30 Oct 2008 15:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-127007</guid>
		<description>[...] found a popular example in springsource.com (Getting Started With JPA in Spring 2.0) and decided to start with [...]</description>
		<content:encoded><![CDATA[<p>[...] found a popular example in springsource.com (Getting Started With JPA in Spring 2.0) and decided to start with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciek</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-121756</link>
		<dc:creator>Maciek</dc:creator>
		<pubDate>Thu, 18 Sep 2008 09:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-121756</guid>
		<description>[quote comment="121755"]How do I formulate the JPQL query that would remove a given Entree from all 'entrees' sets of the Restaurant entree?[/quote]I ment Restaurant ENTITY, not entree, sorry!</description>
		<content:encoded><![CDATA[<p>[quote comment="121755"]How do I formulate the JPQL query that would remove a given Entree from all &#039;entrees&#039; sets of the Restaurant entree?[/quote]I ment Restaurant ENTITY, not entree, sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciek</title>
		<link>http://blog.springsource.com/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-1/#comment-121755</link>
		<dc:creator>Maciek</dc:creator>
		<pubDate>Thu, 18 Sep 2008 09:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-121755</guid>
		<description>Hello,

nice article. I've been wondering if you could help me with the following problem. Suppose I want to delete an Entree, which is still referenced by a Restaurant. How do I formulate the JPQL query that would remove a given Entree from all 'entrees' sets of the Restaurant entree? Queries like "DELETE FROM Restaurant.entrees e WHERE e = :entree" don't work.

Thanks in advance, Maciek</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>nice article. I&#039;ve been wondering if you could help me with the following problem. Suppose I want to delete an Entree, which is still referenced by a Restaurant. How do I formulate the JPQL query that would remove a given Entree from all &#039;entrees&#039; sets of the Restaurant entree? Queries like &#034;DELETE FROM Restaurant.entrees e WHERE e = :entree&#034; don&#039;t work.</p>
<p>Thanks in advance, Maciek</p>
]]></content:encoded>
	</item>
</channel>
</rss>
