Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

jaxb and annotations - is it possible?

Thread view: 
Wojtas - 17 Sep 2007 14:48 GMT
Hi!!

I'm generating java classess from xsd file using jaxb.
Is it possible to turn off annotations?
I don't want em to be in generated classess.

Or maybe there is another tool that can do that?

Please help me...

Signature

Pozdro, Wojtas

franco - 18 Sep 2007 02:43 GMT
> Hi!!
>
[quoted text clipped - 9 lines]
>
> Pozdro, Wojtas

is there a way to specify <=java4 compatibility? i don't know much
about jaxb, but if there is jaxb pre-java5 then annotations don't
exist.
Roedy Green - 18 Sep 2007 03:58 GMT
On Mon, 17 Sep 2007 15:48:36 +0200, "Wojtas"
<wkrugiolka@poczta.onet.pl> wrote, quoted or indirectly quoted someone
who said :

>Or maybe there is another tool that can do that?

You could remove them with a regex and Funduc Search/Replace.

see http://mindprod.com/jgloss/searchreplace.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Tim Hallwyl - 18 Sep 2007 20:23 GMT
Wojtas skrev:
> Hi!!
>
[quoted text clipped - 5 lines]
>
> Please help me...

I believe JAXB 1.0 can be used with JRE 1.4, thus without annotations.
JAXB 2.0 without annotations? No. But then again take a look at:

http://forums.java.net/jive/thread.jspa?threadID=411


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.