<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using GlassFish Reference Implementation of EJB 3.0 Persistence with JDeveloper 10.1.3EA</title>
	<atom:link href="http://technology.amis.nl/2005/12/28/using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2005/12/28/using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Keshava Rangarajan</title>
		<link>http://technology.amis.nl/2005/12/28/using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea/#comment-2727</link>
		<dc:creator>Keshava Rangarajan</dc:creator>
		<pubDate>Tue, 03 Jan 2006 01:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=964#comment-2727</guid>
		<description><![CDATA[Lucas
One more minor point, you might have noticed that since the location Id in the HR
schema was a 4 digit number, I had to change the
service and the client code to insert a long.

Hence in HrmService.java the createDept method looks as follows:

    public Department createDept(Long deptno, String dname,
			   Long loc) {
	final Department dept = new Department();
	dept.setDeptno(deptno);
	dept.setDname(dname);
	dept.setLocation(loc);
	getEntityManager().persist(dept);
	return dept;
    }

and in HrmClient.java, the create line looks as follows:

 hrmService.createDept(new Long(280),&quot;New Dept&quot;, new Long(1800));

sincerely,
k7]]></description>
		<content:encoded><![CDATA[<p>Lucas<br />
One more minor point, you might have noticed that since the location Id in the HR<br />
schema was a 4 digit number, I had to change the<br />
service and the client code to insert a long.</p>
<p>Hence in HrmService.java the createDept method looks as follows:</p>
<p>    public Department createDept(Long deptno, String dname,<br />
			   Long loc) {<br />
	final Department dept = new Department();<br />
	dept.setDeptno(deptno);<br />
	dept.setDname(dname);<br />
	dept.setLocation(loc);<br />
	getEntityManager().persist(dept);<br />
	return dept;<br />
    }</p>
<p>and in HrmClient.java, the create line looks as follows:</p>
<p> hrmService.createDept(new Long(280),&#8221;New Dept&#8221;, new Long(1800));</p>
<p>sincerely,<br />
k7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keshava Rangarajan</title>
		<link>http://technology.amis.nl/2005/12/28/using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea/#comment-2726</link>
		<dc:creator>Keshava Rangarajan</dc:creator>
		<pubDate>Tue, 03 Jan 2006 01:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=964#comment-2726</guid>
		<description><![CDATA[Oops sorry typo! Meant to say Oracle Express Database not Epress database!
k7]]></description>
		<content:encoded><![CDATA[<p>Oops sorry typo! Meant to say Oracle Express Database not Epress database!<br />
k7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keshava Rangarajan</title>
		<link>http://technology.amis.nl/2005/12/28/using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea/#comment-2725</link>
		<dc:creator>Keshava Rangarajan</dc:creator>
		<pubDate>Tue, 03 Jan 2006 01:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=964#comment-2725</guid>
		<description><![CDATA[Lucas,
Thanks a lot for your excellent example. Just got your example working in JDev
with the Epress database using the sample HR schema.
Needed a few minor changes to make it happen. Here they are:

1. In the persistence.xml file the value to the connection string:

2. The JDBC user and password (of course)



2. The persistence mapping entries for the persistent objects:

In Department.java

@Table(name=&quot;DEPARTMENTS&quot;)
public class Department implements Serializable {

    @Id
    @Column(name=&quot;DEPARTMENT_ID&quot;)
    public Long getDeptno() {

    @Column(name=&quot;DEPARTMENT_NAME&quot;)
    public String getDname() {


    @Column(name=&quot;LOCATION_ID&quot;)
    public Long getLocation() {


In Employee.java


@Table(name=&quot;EMPLOYEES&quot;)
public class Employee implements Serializable {

    @Column(name=&quot;COMMISSION_PCT&quot;)
    public Double getComm() {


    @Column(name=&quot;DEPARTMENT_ID&quot;)
    public Long getDeptno() {


    @Id
    @Column(name=&quot;EMPLOYEE_ID&quot;, nullable=false)
    public Long getEmpno() {

    @Column(name=&quot;LAST_NAME&quot;)
    public String getEname() {


    @Column(name=&quot;HIRE_DATE&quot;)
    public Timestamp getHiredate() {


    @Column(name=&quot;JOB_ID&quot;)
    public String getJob() {

    @Column(name=&quot;MANAGER_ID&quot;)
    public Long getMgr() {

    @Column(name=&quot;SALARY&quot;)
    public Double getSal() {

I&#039;ll now start playing around with the mappings. Thanks again!

sincerely,
k7]]></description>
		<content:encoded><![CDATA[<p>Lucas,<br />
Thanks a lot for your excellent example. Just got your example working in JDev<br />
with the Epress database using the sample HR schema.<br />
Needed a few minor changes to make it happen. Here they are:</p>
<p>1. In the persistence.xml file the value to the connection string:</p>
<p>2. The JDBC user and password (of course)</p>
<p>2. The persistence mapping entries for the persistent objects:</p>
<p>In Department.java</p>
<p>@Table(name=&#8221;DEPARTMENTS&#8221;)<br />
public class Department implements Serializable {</p>
<p>    @Id<br />
    @Column(name=&#8221;DEPARTMENT_ID&#8221;)<br />
    public Long getDeptno() {</p>
<p>    @Column(name=&#8221;DEPARTMENT_NAME&#8221;)<br />
    public String getDname() {</p>
<p>    @Column(name=&#8221;LOCATION_ID&#8221;)<br />
    public Long getLocation() {</p>
<p>In Employee.java</p>
<p>@Table(name=&#8221;EMPLOYEES&#8221;)<br />
public class Employee implements Serializable {</p>
<p>    @Column(name=&#8221;COMMISSION_PCT&#8221;)<br />
    public Double getComm() {</p>
<p>    @Column(name=&#8221;DEPARTMENT_ID&#8221;)<br />
    public Long getDeptno() {</p>
<p>    @Id<br />
    @Column(name=&#8221;EMPLOYEE_ID&#8221;, nullable=false)<br />
    public Long getEmpno() {</p>
<p>    @Column(name=&#8221;LAST_NAME&#8221;)<br />
    public String getEname() {</p>
<p>    @Column(name=&#8221;HIRE_DATE&#8221;)<br />
    public Timestamp getHiredate() {</p>
<p>    @Column(name=&#8221;JOB_ID&#8221;)<br />
    public String getJob() {</p>
<p>    @Column(name=&#8221;MANAGER_ID&#8221;)<br />
    public Long getMgr() {</p>
<p>    @Column(name=&#8221;SALARY&#8221;)<br />
    public Double getSal() {</p>
<p>I&#8217;ll now start playing around with the mappings. Thanks again!</p>
<p>sincerely,<br />
k7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eduardo ivan pichler</title>
		<link>http://technology.amis.nl/2005/12/28/using-glassfish-reference-implementation-of-ejb-30-persistence-with-jdeveloper-1013ea/#comment-2724</link>
		<dc:creator>eduardo ivan pichler</dc:creator>
		<pubDate>Wed, 28 Dec 2005 10:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=964#comment-2724</guid>
		<description><![CDATA[Congratulations, this and the before article is the better of category jdeveloper + ejb3
He is very helpful for a begginer like me.
Thanks]]></description>
		<content:encoded><![CDATA[<p>Congratulations, this and the before article is the better of category jdeveloper + ejb3<br />
He is very helpful for a begginer like me.<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
