Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Data model

 
Kumar Bisk
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was thinking a data model based on swing. I have hibernate which provides reach set of data objects integrated with back-end. But my UI i.e. swing needs to be in sync with data model. This would be a exatc match with struts form-beans associated with html-form.

http://swingdatamodel.blogspot.com

Any thought or input will be highly appreciated.


regards,
Ranjan
 
bparanj
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without knowing your application requirements, its complexity etc, it is very difficult to give you a design suggestion that will fit your scenario.

If the application is simple. Your design is ok. If it is complex with lot of screens and a lot of db access. Things will get messy. Therefore, you should use Mediator Pattern that will encapsulate the interaction between the UI and the Persistance Layer. This Mediator object will be very specific to UI technology, in this case Swing and is also tied to the persistance layer implementation (Hibernate in your case).

Layered architecture must be used for applications that are complex enough to demand its flexibility and other benefits.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic