Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7746167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:12:33+00:00 2026-06-01T10:12:33+00:00

I have a spring web app that uses Hibernate and Velocity. It’s an MVC

  • 0

I have a spring web app that uses Hibernate and Velocity. It’s an MVC app. I pass my ModelMaps down to the service level. And I also use my Hibernate persistence objects in the service level. I have these “domain” objects, which are basically the same thing as the persistence objects, except I include them in the ModelMap and make use of then in velocity. My questions is: can I do away with the “domain” object and use the persistence objects in the ModelMap, or that cause some kind of problems (maybe performance problems)?

Thanks for the help,
Joe

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:12:34+00:00Added an answer on June 1, 2026 at 10:12 am

    As long as you are writing the templates, and not some designer (and assuming that won’t change later), it is probably fine.

    Your biggest gotcha will be catching errors. If something doesn’t load, you may already have sent a portion of the rendered template in the response. So, you will probably want to buffer the output, the VelocityLayoutServlet essentially does this by default (not for the layout template, but for the main content). The VelocityViewServlet will require you to flip a setting. I don’t recall which one, offhand. Look at the VelocityView class for more on that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to implement validations for a web app that uses Spring MVC 3.
I have configured in following way that spring MVC app using Spring 3.1.1.RELEASE web.xml
I have put together a simple ASP.NET MVC 3 test web app that uses
I have a web app that uses Spring's Log4jConfigurer class to initialize my Log4J
I have an application built on Spring MVC that uses Hibernate for all of
I have a Spring Web MVC application that I'd like to serve a large,
Using Visual Studio 2008 and VB.Net: I have a working web app that uses
I have a web app with a form that I am trying to pass
Everybody, Hello! I have a simple stub client for the cxf web-service (spring app).
I have a web app that currently uses the current HttpContext to store a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.