• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic bean creation in Spring

 
saakshi jain
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Is there a way in spring wherein we can read the fields of a bean from the DB table and create a complete bean class - with getters and setters on server startup???

I require this to make my application completely configurable...as in if I have to add a new field in future , all I would require would be adding a field in the db and the bean setters and getters would be available to me.

Thanks
 
Vijitha Kumara
Bartender
Posts: 3909
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better sit in the Spring forum. Moving...
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing in Spring that I know off provides this functionality off the shelf.
Creating a class dynamically at run time ... I pretty sure that's been tried a few times. Reflection could work - but it won't be pretty

google - creating a class dynamically in java

and this post on the Ranch - http://www.coderanch.com/t/385084/java/java/creating-simple-java-objects-dynamically
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic