Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

deriving domain model - Hibernate style for web services  RSS feed

 
Mohit Sinha
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I would like to know if any one has worked on this or has any idea about the same. Like we derive a ready-to-use domain model from the underlying database by using Hibernate as O/R mapping solution, I would want to know can we follow a similar approach towards web services where in as a client we can derive the underlying model being used in web services. I am planning to create all java binding classes for the web services using JAXB.
Currently in Hibernate we can have all our business logic in our custom classes which extend the Hibernate generated classes. How can I achieve the same in a web services scenario.
Also sometimes back I read that JAXB can generate classes that are more than just java representations of xml objects and can represent real behavior but sadly I did not get much info on the same.

Do provide your thoughts on the same. Any help will be very much appreciated.

Thanks,

MS
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!