[jboss-user] [EJB 3.0] - Re: Exception got in deployment of EJB3 .ear

ashusri000 do-not-reply at jboss.com
Thu Jul 5 03:31:53 EDT 2007


My persistence.xml looks like this :

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="testApp" transaction-type="JTA">
 oracle.toplink.essentials.PersistenceProvider
<jta-data-source>java:/my-ejb-test</jta-data-source>
<jar-file>../persist.jar</jar-file>
src.Employee
 
              
             
             
             

</persistence-unit>





Code for my entity bean :


package src;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Employee implements Serializable {
	@Id
	private String name;

	private String age;

	private String dept;

	private static final long serialVersionUID = 1L;

	public Employee() {
		super();
	}
	
	public Employee(String Name , String Age , String Dept)
	{
		
		this.age = Age ; 
		this.dept  = Dept ;
		this.name  = Name;
		
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return this.age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getDept() {
		return this.dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

}


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060677#4060677

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060677



More information about the jboss-user mailing list