Re: @weblogic.automatic-key-generation -Version2-Help
Eivind Waaler <[email protected]>
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
Did you try the <weblogic> task in build.xml as I suggested?
You can also use merge files. I suggest you take a look at the website,
and read about plugins etc. before you ask questions here:
http://boss.bekk.no/boss/middlegen/
.eivind
On Mon, 3 Nov 2003, zousey seyzou wrote:
> Hello forum what i am trying to do is, for example I have public abstract
> class DeclarationBodyBean implements javax.ejb.EntityBean generated by
> middlegen,now i wnated if middlegen can generate
> @weblogic.automatic-key-generation tag for me like bellow, I have written
> this manually, only this one, but I want middlegen to generates it for me .
> **********************************************************************************
> @weblogic.automatic-key-generation
> * generator-type="ORACLE"
> * generator-name="DECLARATION_BODY_SEQ"
> * key-cache-size="1"
> *
> * @weblogic.clustering
> * home-is-clusterable="False"
> * home-load-algorithm="RoundRobin"
> *
> * @weblogic.data-source-name ${datasource.name}
>
>
>
> **********************************************************************************
> This part is automatically generated by middlegen.
>
> public abstract class DeclarationBodyBean implements javax.ejb.EntityBean {
>
> /**
> * This class is part of the Export System, and it is
> * a CMP EJB accessing the DECLARATION_BODY table.
> *
> * @author $Author: Klp $
> * @version $Revision: 8 $ $Date: 30-10-03 10:58 $
> *
> * @ejb.bean
> * type="CMP"
> * cmp-version="2.x"
> * name="DeclarationBody"
> * local-jndi-name="export.declaration.DeclarationBodyLocalHome"
> * view-type="local"
> * primkey-field="declarationId"
> *
> * @ejb.finder
> * signature="java.util.Collection findByReferenceNumber(java.lang.String
> referenceNumber)"
> * result-type-mapping="Local"
> * method-intf="LocalHome"
> * query="SELECT DISTINCT OBJECT(o) FROM DeclarationBody o WHERE
> o.referenceNumber = ?1"
> * description="REFERENCE_NUMBER is not indexed."
> *
> * @ejb.persistence table-name="DECLARATION_BODY"
> *
> * @ejb.ejb-ref
> * ejb-name="DeclarationStatus"
> * view-type="local"
> * ref-name="ejb/DeclarationStatus"
> *
> * @ejb.transaction type="Required"
> *
> *
> */
>
> }
>
> Thanks for your help
>
> _________________________________________________________________
> Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/