Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Convert Annotations - reg  RSS feed

 
Ranch Hand
Posts: 37
Fedora Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Craig

Spring In Action(2007 edition) is a great book.
I have a few Annotations, say annotations for, JDBC related JavaBeans-POJOs.
And, I have the rest of the JavaBeans-POJOs wired through an XML file.

My question is

Can Spring create a new XML file out of the annotations ?
Say MyAnnotations.xml.

Thank you
Chanakya
 
author
Posts: 396
8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

There's nothing I no of that can do that, but...why would you want to?

First, I'd rather see it go the other way: Produce annotation config from XML.

Second, until that conversion can take place, there's no reason you can't mix-n-match config. XML files can import Java config classes by declaring them as beans. Java config classes can use XML config with the @ImportResource annotation.


Chanakya Gupta wrote:Hi Craig

Spring In Action(2007 edition) is a great book.
I have a few Annotations, say annotations for, JDBC related JavaBeans-POJOs.
And, I have the rest of the JavaBeans-POJOs wired through an XML file.

My question is

Can Spring create a new XML file out of the annotations ?
Say MyAnnotations.xml.

Thank you
Chanakya

 
What does a metric clock look like? I bet it is nothing like this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!