GeekArticles
Java
J2SEDon't Let Hibernate Steal Your Identity
Author: onjava.com |
Published: 14th Sep 2006 |
Visited: 333 times |
Add CommentFiled in: J2SE
Hibernate has one set of ideas about how to make something unique, such as using a database sequence number as an ID. But this clashes with Java's need for implementations of equals() and hashCode() that determine identity for objects, even those that haven't yet made a trip to the database and thus can't have a sequence number. James Brundege has an option that should satisfy both Hibernate and Java.
Read Article Sponsored Links
Related Articles
• Federated Identity Through the Eyes of the Deployer What identity-related challenges do application deployers face? What questions must you ponder before adopting a standardized solution? Find the answers, along with tips and guidelines, in this artic ...
• Project Options dont work QC#: 57335 Version: 11.2 Status: Closed defect, no action required Resolution: Bug could not be reproduced as submitted Description: New clean install, no previous install on new machine.
HP notebook Core 2 duo + 2GB RAM, Vista Business.
Attached:
- ...
• Securing Applications With Identity Services, Part 2: Authorization Learn how to configure OpenSSO with identity services so as to allow users to perform tasks for which they have been authorized. Identity services are interfaces that support authentication, authorization, and other related services with SOAP or REST technology. Also read Part 1, which describes how ...
• Article :: The Future of Identity David Chisnall looks at the growing problem of identity theft and wonders whether the Internet can give us some ideas for addressing ...
• Securing Applications With Identity Services, Part 1: Authentication By configuring OpenSSO, Sun's open-source project for Sun Java System Access Manager, you can authenticate users with identity-service interfaces that support SOAP/WSDL and REST. This article describes the procedure through an example application built with the NetBeans I ...
• The Java EE Application as an EJB/Spring/Hibernate Hybrid Java EE 5 provides all the features you need to build a robust enterprise application right in an EJB 3.0 container, but incorporating the relative strengths of Spring and Hibernate can further improve the productivity and quality of your applicat ...