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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:43:16+00:00 2026-06-15T13:43:16+00:00

There’s a whole lot of beans and vegetables in Java, and it’s beginning to

  • 0

There’s a whole lot of beans and vegetables in Java, and it’s beginning to confuse me some. I’ve read a couple of newly published books on Java EE 6, and they all say that “entity beans” has been pruned (“deprecated” would be the correct term for the newcomer not yet brainwashed by the Java framework). The author’s are quick to say that they will not at all touch the subject of.. “entity beans”. It has been replaced by JPA they say. Then they write a chapter or two about object relationship mapping and annotate the POJO classes with @Entity. They also annotate fields a little bit here and there to specify the mapping configuration when defaults won’t suffice.

However, usually when we annotate bean classes, we take that annotation as a type prefix. For example, the annotation @Stateful makes the bean a stateful session bean. Doesn’t that mean that the @Entity annotation makes the bean an entity bean – the very thing deprecated they said!?

  • 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-15T13:43:17+00:00Added an answer on June 15, 2026 at 1:43 pm

    @Entity annotated (mapping) classes are not at all related to the ‘deprecated’ entity beans from the J2EE architectural model. Not really anyway.

    Those ‘deprecated’ entity beans you are reading about are very much still around, just that have been refactored so extensively as to be almost unrecognizable to someone used to old school J2EE.

    In the new Java EE model, service and model classes are properly separated, with JPA annotated @Entity beans serving as the models, and @Stateless or @Stateful session beans serving as the service classes.

    The key thing to keep in mind is separation of concerns.

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

Sidebar

Related Questions

There are a lot of blogs saying that a hasOwnProperty check should be used
There are a lot of example implementations of daemons on the net. Most that
There are some Magento Connect extensions that I find myself installing every time I
There is a QListWidget containing keywords for search and a QTextEdit containing some text.
There are a lot of questions about full-joining in mysql(5.1.36). Of course the solution
There are some stdlib functions that throw errors on invalid input. For example: Prelude>
There is some contradiction in the api documentation: on one location: https://developer.foursquare.com/docs/responses/user on another
There was some progress made to the earlier problem. Now there is a new
I know there's a lot of other questions out there that deal with this
There are some keywords in text and start/end position of their occurrences. Keywords may

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.