Hi friends,
I am using WEBLOGIC,XDoclet,EJB(Programming using CMR relations)....
I want to update table( like update statement in SQL) datas using XDoclet...I searched http://xdoclet.sourceforge.net/xdoclet/tags/ejb-tags.html I am not getting any idea regarding this...
Can you write me which annotation or how can i do this update using xdoclet.Or the web tutorial regarding this...
Thanks in advance
Priya
---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

--- Ajay Gautam <ajay610@...> wrote:
> Konstantin:
> Sorry, I wasn't aware of "xdoclet 2". I just wen't
> to xdoclet's
> website and was looking for solutions / workarounds
> there. Perhaps I
> missed the link to xdoclet 2.
> I am going to assume that XD2
> (http://xdoclet.codehaus.org/) is a
> continuation of xdoclet.sf.net, and would be not
> that difficult to
> move to XD2. (will read more at their webpage).
It is complete rewrite with new architecture,
with several improvements ( for example tags
are able to validate their placement and required
parameters and produce mostly meaningfull error
messages )
There is also better templating.
Preferred usage mode is maven-2 , but ant
and m1 are also supported.
hibernate is most used module and thus prett yup to
date to current mappings
regards,
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

On 11/1/07, Ajay Gautam <ajay610@...> wrote:
> On 11/1/07, Fred Muhlenberg <fmuhlenberg@...> wrote:
> > Konstantin Priblouda wrote:
> > > --- Ajay Gautam <ajay610@...> wrote:
> > >
> > >> I have a few java files that have java 5 code in
> > >> them.
> > >> After much googling, I came to the conclusion that I
> > >> can't upgrade
> > >> xdoclet and have it process java 5 files.
> > >>
> > >> The thing is that this java file does not contain
> > >> any hibernatedoclet
> > >> tags, and build.xml is setup to ignore this file.
> > >>
> > >> Most likely, I am doing something wrong, and would
> > >> VERY much
> > >> appreciate if someone could take a look at this, and
> > >> give me some
> > >> pointers:
> > >>
> > >
> > > I remember that there was talk about new xjavadoc
> > > version which is able to process java 1.5+ - you may
> > > try it out.
> > >
> > > BTW; why it is impossible to you to move to XD2?
> > > as there is fresh qdox version which is said to
> > > be able to process 1.5 sources ( m2 plugin update will
> > > follow soon, but you can already bump up this
> > > dependency ) there shall be no problem with it.
> >
> > It's been a while since I set this up but I have continuing success
> > generating Hibernate mapping files using Java 1.5 and XDoclet.
> >
> > I'm using xdoclet-1.2.3.jar and the xjavadoc-1.5-snapshot050611.jar.
> >
> > Put both in your classpath (so Ant can see it) and it should work.
> > -Fred
>
>
> Konstantin:
> Sorry, I wasn't aware of "xdoclet 2". I just wen't to xdoclet's
> website and was looking for solutions / workarounds there. Perhaps I
> missed the link to xdoclet 2.
> I am going to assume that XD2 (http://xdoclet.codehaus.org/) is a
> continuation of xdoclet.sf.net, and would be not that difficult to
> move to XD2. (will read more at their webpage).
>
> Fred:
> I am using xdoclet 1.2.3. I will add xjavadoc-1.5-snapshot050611.jar
> to ant/lib and see if that fixes it. If so, will upgrade to XD2
> sometime in the future.
Fred: Thanks for the tip. Adding
xdoclet-1.2.3/lib/xjavadoc-1.5-snapshot050611.jar fixed the issue.
Many thanks
Ajay
--
Talk is cheap, show me the code.
http://www.ajaygautam.com

On 11/1/07, Fred Muhlenberg <fmuhlenberg@...> wrote:
> Konstantin Priblouda wrote:
> > --- Ajay Gautam <ajay610@...> wrote:
> >
> >> I have a few java files that have java 5 code in
> >> them.
> >> After much googling, I came to the conclusion that I
> >> can't upgrade
> >> xdoclet and have it process java 5 files.
> >>
> >> The thing is that this java file does not contain
> >> any hibernatedoclet
> >> tags, and build.xml is setup to ignore this file.
> >>
> >> Most likely, I am doing something wrong, and would
> >> VERY much
> >> appreciate if someone could take a look at this, and
> >> give me some
> >> pointers:
> >>
> >
> > I remember that there was talk about new xjavadoc
> > version which is able to process java 1.5+ - you may
> > try it out.
> >
> > BTW; why it is impossible to you to move to XD2?
> > as there is fresh qdox version which is said to
> > be able to process 1.5 sources ( m2 plugin update will
> > follow soon, but you can already bump up this
> > dependency ) there shall be no problem with it.
>
> It's been a while since I set this up but I have continuing success
> generating Hibernate mapping files using Java 1.5 and XDoclet.
>
> I'm using xdoclet-1.2.3.jar and the xjavadoc-1.5-snapshot050611.jar.
>
> Put both in your classpath (so Ant can see it) and it should work.
> -Fred
Konstantin:
Sorry, I wasn't aware of "xdoclet 2". I just wen't to xdoclet's
website and was looking for solutions / workarounds there. Perhaps I
missed the link to xdoclet 2.
I am going to assume that XD2 (http://xdoclet.codehaus.org/) is a
continuation of xdoclet.sf.net, and would be not that difficult to
move to XD2. (will read more at their webpage).
Fred:
I am using xdoclet 1.2.3. I will add xjavadoc-1.5-snapshot050611.jar
to ant/lib and see if that fixes it. If so, will upgrade to XD2
sometime in the future.
--
Talk is cheap, show me the code.
http://www.ajaygautam.com

Konstantin Priblouda wrote:
> --- Ajay Gautam <ajay610@...> wrote:
>
>> I have a few java files that have java 5 code in
>> them.
>> After much googling, I came to the conclusion that I
>> can't upgrade
>> xdoclet and have it process java 5 files.
>>
>> The thing is that this java file does not contain
>> any hibernatedoclet
>> tags, and build.xml is setup to ignore this file.
>>
>> Most likely, I am doing something wrong, and would
>> VERY much
>> appreciate if someone could take a look at this, and
>> give me some
>> pointers:
>>
>
> I remember that there was talk about new xjavadoc
> version which is able to process java 1.5+ - you may
> try it out.
>
> BTW; why it is impossible to you to move to XD2?
> as there is fresh qdox version which is said to
> be able to process 1.5 sources ( m2 plugin update will
> follow soon, but you can already bump up this
> dependency ) there shall be no problem with it.
It's been a while since I set this up but I have continuing success
generating Hibernate mapping files using Java 1.5 and XDoclet.
I'm using xdoclet-1.2.3.jar and the xjavadoc-1.5-snapshot050611.jar.
Put both in your classpath (so Ant can see it) and it should work.
-Fred
--
Fred Muhlenberg
'One thing at a time and that done well'

--- Ajay Gautam <ajay610@...> wrote:
> I have a few java files that have java 5 code in
> them.
> After much googling, I came to the conclusion that I
> can't upgrade
> xdoclet and have it process java 5 files.
>
> The thing is that this java file does not contain
> any hibernatedoclet
> tags, and build.xml is setup to ignore this file.
>
> Most likely, I am doing something wrong, and would
> VERY much
> appreciate if someone could take a look at this, and
> give me some
> pointers:
>
I remember that there was talk about new xjavadoc
version which is able to process java 1.5+ - you may
try it out.
BTW; why it is impossible to you to move to XD2?
as there is fresh qdox version which is said to
be able to process 1.5 sources ( m2 plugin update will
follow soon, but you can already bump up this
dependency ) there shall be no problem with it.
regards,
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

I have a few java files that have java 5 code in them.
After much googling, I came to the conclusion that I can't upgrade
xdoclet and have it process java 5 files.
The thing is that this java file does not contain any hibernatedoclet
tags, and build.xml is setup to ignore this file.
Most likely, I am doing something wrong, and would VERY much
appreciate if someone could take a look at this, and give me some
pointers:
ant build config's section:
==============================
[...... snipped ......]
<hibernatedoclet
destdir="${build.maps}" excludedtags="@version,@author,@todo"
addedtags="@xdoclet-generated by ${user.name} on ${TIMESTAMP}"
mergedir="${src.dir}/hibernate">
<!-- Generate Hibernate mappings for all PDOs -->
<fileset dir="${src.dir}/java">
<include name="**/pdo/**/*.java"/>
</fileset>
<!-- for unit test -->
<fileset dir="${src.test.dir}">
<include name="com/kiodex/test/mockObjects/MockTaskRequest.java"/>
</fileset>
<hibernate version="3.0"
prefixWithPackageStructure="${xdoclet.package.structure}"/>
</hibernatedoclet>
[...... snipped ......]
==============================
When the ant task is executed, I get the error:
==============================
[...... snipped ......]
[hibernatedoclet] (XDocletMain.start 47 ) Running
<hibernate/>
[hibernatedoclet] Error parsing File
/home-local/agautam/workspace/mdi-trunk/marketdata/mdi/src/java/com/kiodex/marketdata/PowerCurve.java:Encountered
"<" at line 139, column 48.
[hibernatedoclet] Was expecting one of:
[hibernatedoclet] "{" ...
[hibernatedoclet] "," ...
[hibernatedoclet] "." ...
[hibernatedoclet]
[...... snipped ......]
==============================
Notice that the file that fails has path: com/kiodex/marketdata/PowerCurve.java
In the build.xml, I have asked the task to include only files with .../pdo/...
I don;t see pdo is com/kiodex/marketdata/PowerCurve.java
What am I doing wrong?
Any much would be much appreciated.
Thanks
Ajay
--
Talk is cheap, show me the code.
http://www.ajaygautam.com