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 3874054
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:06:29+00:00 2026-05-19T22:06:29+00:00

Please share your view on this kind of thing i’m currently testing out :

  • 0

Please share your view on this kind of thing i’m currently testing out :

  1. Have an JPA entity inside my JSF managed bean
  2. Bind the entity’s properties to the JSF form elements like input text, combo, even datatable for the entity’s list of detail objects for example.
  3. Have the entity processed by a service object, meaning the entity object itself, and perhaps with some other simple variables / objects
  4. The service will do some basic validation or simple processes, and deliver the entity object to the DAO layer to be persisted
  5. And the JSF view will reflect on the detached entity

Is this kind of solution with passing the entities between tiers OK ?

Forgive me for my inexperience in this matter, since i was used to play with ‘variables’ in webapp (using map based formbean in struts 1), but i’ve read about transforming the entity objects into some other format, but i’m not sure what it is for ?

If the relations between entities are defined, we can bind it to JSF components, and therefore render based on and populate the entity’s properties.

  • 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-05-19T22:06:30+00:00Added an answer on May 19, 2026 at 10:06 pm

    Yes, this is perfectly fine and in fact the recommended way to do it nowadays.

    This “transforming the entity objects into some other format” refers probably to the Data Transfer Object pattern, which was necessary in the bad old days before annotations, when entity classes usually had to inherit from some framework-specific base class, undergo bytecode manipulation or were implemented as proxy objects by an EJB container.

    Such entity objects were either impossible to serialize or contained much more state than the actual entity data and therefore would waste a lot of space when serialized. So if you wanted to have a separate app server tier, you had to use the DTO pattern to have it communicate efficiently with the web tier.

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

Sidebar

Related Questions

For someone who's been down this road, please share your breadcrumbs. I have old
Share your ideas please! I have issue to check the folder and convert a
Please share your view of System.Runtime.Serialization . My questions and doubts are: Class and
Could you please share your experience with NHibernate schema generation? How much scalable it
Please share your favorite application design / design patterns for use in PHP with
Please share how you do version control for Lotus Notes/Domino development. I want to
Can anyone please share some java codes for getting started with google search api's.I
Can someone please share a extremely simple version of JQuery Ajax with pagination??
Possible Duplicate: How does this CSS triangle shape work? Please help me i need
please have a look at the following code import java.util.ArrayList; import java.util.List; public class

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.