[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Can't deploy new cmp entity: ArrayIn
From: nat101j <do-not-reply () jboss ! com>
Date: 2005-11-30 22:47:23
Message-ID: 33182878.1133390843537.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]
And here are the java files, to whoever cares to look at this.
Local interface:
| package x1.db;
|
| import java.sql.Timestamp;
| import javax.ejb.EJBLocalObject;
|
| public interface Logtrk2 extends EJBLocalObject {
|
| public void setID(Integer iD);
| public Integer getID();
|
| public void setLogtPhraseID(Integer logtPhraseID);
| public Integer getLogtPhraseID();
|
| public void setLogtStartID(Integer logtParentID);
| public Integer getLogtStartID();
|
| public void setPhraseID(Integer phraseID);
| public Integer getPhraseID();
|
| public void setNumQry(Double nymQry );
| public Double getNumQry();
|
| public void setType(int type);
| public int getType();
|
| public void setTimeLog(Timestamp timeLog);
| public Timestamp getTimeLog();
|
| public void setTimeTrans(Timestamp timeTrans);
| public Timestamp getTimeTrans();
|
| public void setTimeMS(int timeMS);
| public int getTimeMS();
| }
---------------------------------------------------------------------------------------
And the ejbCreate of the bean:
| public Integer ejbCreate(Integer iD, int type, Integer logtPhraseID, Integer \
phraseID ,Timestamp timeTX) throws CreateException { | RamTimestamp rts = new \
RamTimestamp(); //this is a custom, similar-to, Timestamp class | setID(iD);
| setType(type);
| setLogtPhraseID(logtPhraseID);
| setPhraseID(phraseID);
| Timestamp now = rts.getLogTime();
| setTimeLog(now);
| if (timeTX==null) timeTX=now;
| setTimeTrans(timeTX);
| return null;
| }
----------------------------------------------------------------------------------
And the Home thingajabig:
| package x1.db;
|
| import java.sql.Timestamp;
| import javax.ejb.CreateException;
| import javax.ejb.EJBLocalHome;
| import javax.ejb.FinderException;
|
| public interface Logtrk2Home extends EJBLocalHome {
|
| public Logtrk2 create(Integer iD, int type, Integer logtPhraseID, Integer \
phraseID ,Timestamp timeTX) throws CreateException; | public Logtrk2 \
findByPrimaryKey(Integer iD) throws FinderException; | }
View the original post : \
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909895#3909895
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909895
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic