[jboss-user] [EJB 3.0] - One-To-One?how to make two tables share their primary key?

2006-09-05 Thread killme2008
you see,in Hibernate,we can set a pojo to have an one-to-one relationship with the other entity by share their primary key,for example: | | | It is related with TPassport like: | | | |

[jboss-user] [EJB 3.0] - Re: Ejb 3 is DTO less??

2006-09-05 Thread killme2008
I think you can make your interface extends java.io.Serializable by dennis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969441#3969441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969441 __

[jboss-user] [EJB 3.0] - Re: Problem with lazy initialization - no session or session

2006-09-05 Thread killme2008
"killme2008" wrote : you have to try "Extended Persistence Contexts and Application Transactions",read the tutorial of jboss-ejb3-doc ,just like: | | @PersistenceContext(type=PersistenceContextType.EXTENDED) EntityManager em; | | | by dennis View the o

[jboss-user] [EJB 3.0] - Re: Problem with lazy initialization - no session or session

2006-09-05 Thread killme2008
you have to try "Extended Persistence Contexts and Application Transactions",see the tutorial of jboss-ejb3-doc ,just like: @PersistenceContext(type=PersistenceContextType.EXTENDED) EntityManager em; by dennis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3

[jboss-user] [EJB 3.0] - Re: a unidirectonal one-to many example, anyone can help me?

2006-09-04 Thread killme2008
I reinstall the jboss server,it works...I dont' know why it goes wrong before that.Thanks ,fhh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969343#3969343 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969343 ___

[jboss-user] [EJB 3.0] - Re: @EJB injection gives null

2006-09-03 Thread killme2008
I have the same problem.any solutions? by dennis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969099#3969099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969099 ___ jboss

[jboss-user] [EJB 3.0] - a unidirectonal one-to many example, anyone can help me?

2006-09-03 Thread killme2008
I wrote a example following the . 1.First,a company.java file: @Entity public class Company implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; private String name; private Set employees; public