Himanshu Chitranshi

Greenhorn
+ Follow
since Sep 06, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Himanshu Chitranshi

yes your understanding is 100% right....
transaction will start when we call begin() method of EntityTransaction class....you can get the reference of EntityTransaction by calling em.getTransaction() method...if you want that em will join the transaction that you have created then you have to call em.joinTransaction().....


Hello,

In the @Table annotation can you please use the schema attribute explicitly..

I mean in person use

@Table(name="PERSON",schema="rbv")

In Address use

@Table(name="ADDRESS",schema="rbv")

Default value of schema is "" so may be it is creating the problem..
your persistence.xml file should be inside the META-INF directory which is present inside a jar file...

Now you can place this jar file in following locations....

1. WEB-INF/lib directory...
2. root of .ear file
3. root of ejb-jar file ... - preferable

Please let me know where you have placed your jar file...

Regards
Himanshu Chitranshi
In //Zamowienia.java try with this...
@Id
@Column(name="ID")
public Long getId(){
return this.id;
}
public void setId(Long id){
this.id=id;
}

Please tell me if you get the same exception.....
i think the user id and password which you are using in obtaining the connection with database do not have sufficient permission.

Use the same user and password and login to oracle and fire any update or insert query..check whether you are getting the same ORA error message....