Discussion:
[Middlegen-user] Question about merge points
m***@netscape.net
2002-08-06 04:58:02 UTC
Permalink
Hi,

I am trying to include merge code into an ejb. Following the examples I have placed my merge code into a src file called cmp20-mytable-class-code.txt and this successfully adds my code to the generated files /ejb/MyTableBean.java and /interfaces/MyTableLocal.java.

What I would like to do is have code generated in the /interfaces/MyTableLocalHome.java file so that it will apply to the entire table and not just one record. Is there a specific file name format similar to cmp20-mytable-class-code.txt that will make my code accessible from /interfaces/MyTableLocalHome.java? If not is there a way to achieve the same result?

Thanks,
Mat.


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with ***@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Aslak Hellesøy
2002-08-06 06:19:02 UTC
Permalink
Hi Mat,

It's important that you understand how the generation process works.
Middlegen only generates the *Bean.java files. The rest is done by
XDoclet. -So how did the sayHello() method in FlightBean.java also appear in
(the XDoclet generated) FlightLocal.java? Because of @ejb.home-method
view-type="local" in the merge file. What if you want the method to appear
in FlightLocalHome.java too? Well, it's still XDoclet's business. Add a
@ejb.interface-method view-type="local" tag to the merge file and you'll
see.

XDoclet also has merge points that you can use. Please refer to XDoclet's
doco. You should know that the XDoclet in Middlegen's CVS is a relatively
new snapshot from XDoclet's CVS. -So you should download XDoclet from CVS
and read the docs in there instead of the old XDoclet 1.1.2 docs.

HTH,
Aslak
-----Original Message-----
Sent: 6. august 2002 08:57
Subject: [Middlegen-user] Question about merge points
Hi,
I am trying to include merge code into an ejb. Following the
examples I have placed my merge code into a src file called
cmp20-mytable-class-code.txt and this successfully adds my code
to the generated files /ejb/MyTableBean.java and
/interfaces/MyTableLocal.java.
What I would like to do is have code generated in the
/interfaces/MyTableLocalHome.java file so that it will apply to
the entire table and not just one record. Is there a specific
file name format similar to cmp20-mytable-class-code.txt that
will make my code accessible from
/interfaces/MyTableLocalHome.java? If not is there a way to
achieve the same result?
Thanks,
Mat.
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift
ideas. Experience the convenience of buying online with
Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...