my replies were kept blocked last couple of days....

indeed, i'd like to see a JPA example below,

- a non-servlet normal unit test class looking up and casting an ejb bean's
local proxy object(namely OPENEJB IntraVM mode?), which does CRUD on an
entity 
- a local ejb interface defining CRUD methods
- a bmt-ejb bean injected with the persistence context consisting of that
entity, and the bean implementing that ejb interface
- finally, the entity class itself

thx!
 

David Blevins wrote:
> 
> 
> On Nov 20, 2007, at 12:37 AM, Jacek Laskowski wrote:
> 
>> On Nov 20, 2007 2:21 AM, David Blevins <[EMAIL PROTECTED]> wrote:
>>
>>> We don't have any JPA examples yet.  Dario has some in his blog  
>>> though:
>>
>> Hi,
>>
>> So what's persistence.xml for in ejb-examples? There's
>> <class>org.apache.openejb.examples.servlet.JpaBean</class> and the
>> class looks as @Entity:
>>
>> @Entity
>> public class JpaBean {
>>    @Id
>>    @GeneratedValue(strategy = GenerationType.IDENTITY)
>>    @Column(name = "id")
>>    private int id;
>>
>> What examples would you think of?
> 
> I forgot about Dain's servlet examples.  They only run in Tomcat and  
> have no unit tests.
> 
> I was thinking about OPENEJB-360 which would show an ejb using jpa  
> along with a unit test to show embedded testing.
> 
> -David
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JPA-Examples-%28was%3A-Re%3A-Setup-tutorial-%29-tf4346259.html#a13932094
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Reply via email to