<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Testing Java Persistence API (JPA) Entities Outside the Container</title>
	<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/</link>
	<description>Exploring the Spring Framework and Application Development</description>
	<pubDate>Fri, 21 Nov 2008 12:51:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>

	<item>
		<title>By: Dirk Hesse</title>
		<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-2754</link>
		<author>Dirk Hesse</author>
		<pubDate>Thu, 23 Nov 2006 16:32:55 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-2754</guid>
					<description>afaik and from my experience is User a keyword and doesnt work with mysql or you got some weird results/errors. In our app we changed the name to customer. 

just my 2 cents</description>
		<content:encoded><![CDATA[<p>afaik and from my experience is User a keyword and doesnt work with mysql or you got some weird results/errors. In our app we changed the name to customer. </p>
<p>just my 2 cents</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jan Hrabowski</title>
		<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-4427</link>
		<author>Jan Hrabowski</author>
		<pubDate>Fri, 12 Jan 2007 01:30:00 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-4427</guid>
					<description>I also run into User keyword issue when I tried the web sample on Oracle but figured it out and it worked great. I am not sure if MyDAOTests would run. There is no sample attached and it is not clear to me how myDAO property would be set.</description>
		<content:encoded><![CDATA[<p>I also run into User keyword issue when I tried the web sample on Oracle but figured it out and it worked great. I am not sure if MyDAOTests would run. There is no sample attached and it is not clear to me how myDAO property would be set.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Peter Backlund</title>
		<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-5101</link>
		<author>Peter Backlund</author>
		<pubDate>Thu, 25 Jan 2007 08:43:43 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-5101</guid>
					<description>HI, nice article. I've written a similar one about DAO testing with Spring and Hibernate, wrapping in a rollback transaction: 

http://peterbacklund.blogspot.com/2006/11/testing-hibernate-daos-with-spring.html

Nice to see that explicit JPA support is included in the test hierarchy.</description>
		<content:encoded><![CDATA[<p>HI, nice article. I&#8217;ve written a similar one about DAO testing with Spring and Hibernate, wrapping in a rollback transaction: </p>
<p><a href="http://peterbacklund.blogspot.com/2006/11/testing-hibernate-daos-with-spring.html" rel="nofollow">http://peterbacklund.blogspot.com/2006/11/testing-hibernate-daos-with-spring.html</a></p>
<p>Nice to see that explicit JPA support is included in the test hierarchy.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: AlexisK</title>
		<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-6656</link>
		<author>AlexisK</author>
		<pubDate>Wed, 21 Feb 2007 21:58:27 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-6656</guid>
					<description>Simply call the flush method on the sharedEntityManager of the AbstractJpaTests , all inserts and others wainting actions will be done by the EntityManager. You don't have to call the list to obtain the newly persisted object. Other thing, if you use use find(Class entityClass, Object primaryKey) , you will never flush dbbecause it uses cache, other "find" method with query can't use cache... so it will cause the entity manager to flush awaiting actions.</description>
		<content:encoded><![CDATA[<p>Simply call the flush method on the sharedEntityManager of the AbstractJpaTests , all inserts and others wainting actions will be done by the EntityManager. You don&#8217;t have to call the list to obtain the newly persisted object. Other thing, if you use use find(Class entityClass, Object primaryKey) , you will never flush dbbecause it uses cache, other &#8220;find&#8221; method with query can&#8217;t use cache&#8230; so it will cause the entity manager to flush awaiting actions.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Brian Reilly</title>
		<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-32153</link>
		<author>Brian Reilly</author>
		<pubDate>Thu, 08 Nov 2007 18:48:26 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-32153</guid>
					<description>I think the reason why that extra at the end of your test looks ugly is because you're not using the data.  What actually bothers me more is not having any assert statements in your test.  You could probably solve both problems by adding an assert that uses usersAfter, possibly comparing it to similar data gathered at the beginning of the test.</description>
		<content:encoded><![CDATA[<p>I think the reason why that extra at the end of your test looks ugly is because you&#8217;re not using the data.  What actually bothers me more is not having any assert statements in your test.  You could probably solve both problems by adding an assert that uses usersAfter, possibly comparing it to similar data gathered at the beginning of the test.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Priyabrata</title>
		<link>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-51732</link>
		<author>Priyabrata</author>
		<pubDate>Sat, 19 Jul 2008 12:57:01 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/testing-java-persistence-api-jpa-entities-outside-the-container/#comment-51732</guid>
					<description>I have gone through several of your articles and they are really useful. Can you please publish an article as to how to enable logging effectively with spring. There is a lot of confusion about JCL( jakarta commons logging) class loading issues ,JDK 14 logging and log4j. And there is no good article available which addresss this.</description>
		<content:encoded><![CDATA[<p>I have gone through several of your articles and they are really useful. Can you please publish an article as to how to enable logging effectively with spring. There is a lot of confusion about JCL( jakarta commons logging) class loading issues ,JDK 14 logging and log4j. And there is no good article available which addresss this.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
