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:
|
|
|
|
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
__
"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
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
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
___
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
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