Thursday, September 14, 2006

 

Hibernate identity theft and Eclipse cheating!

O'REILLY NETWORK'S ONJava.com NEWSLETTER
--------------------------------------------------
The Independent Source for Enterprise Java

==================================================================
Secure. Fast. Affordable. GoToMeeting Web Conferencing.

Get all three with GoToMeeting(TM), the Web-based service with
screen-sharing technology so multiple PC users can meet online
anytime. Present, demo software and train from anywhere with
Internet access. Plus, you can hold unlimited meetings for one
flat rate. Get a free 30-day trial now.

http://www.oreilly.com/go/go2mtg_javsecure

==================================================================

Greetings...

It's Java identity time again, and you know what that means: properly
implementing equals() and hashCode() in some way that is meaningful and
appropriate to your objects. That is, if they're to be considered the
same, then they'll return true for equals() and have equal hashCode()
values, so that a collection (particularly a Set, which doesn't allow
duplicates) will treat them appropriately. All well and good. Until you
bring persistence into the picture.

"Object identity is deceptively hard to implement correctly when objects
are persisted to a database. However, the problems stem entirely from
allowing objects to exist without an ID before they are saved. We can
solve these problems by taking the responsibility of assigning object IDs
away from object-relational mapping frameworks such as Hibernate." James
Brundege says the solution is to create your own unique ID as soon as the
object is instantiated, and to use that as the basis of object and
database identity. In "Don't Let Hibernate Steal Your Identity," he shows
how to accomplish this.

http://www.onjava.com/pub/a/onjava/2006/09/13/dont-let-hibernate-steal-your-identity.html

Lost in Eclipse? Cheat. "Eclipse provides a built-in mechanism for
displaying mini-tutorials called cheat sheets. Cheat sheets are quick and
dirty instructions for how to perform multi-step processes in Eclipse,
displayed on the side of the workbench where you can quickly and easily
step through them." In "Building Cheat Sheets in Eclipse," Harriett
Hardman and Steve Hanson show you how to create your own.

http://dev2dev.bea.com/pub/a/2006/08/eclipse-cheat-sheets.html

In this week's feature article from java.net, Srivaths Sankaran takes a
look at the how, where, when, and why of "Code Reviews": "A code review is
an excellent checkpoint that can help flush out erroneous assumptions and
gaps in reasoning. It helps minimize the impact of a problem by means of
early detection. While testing is an excellent way to improve the quality,
testing alone is not enough. For one, as shown by McConnell in 'Code
Complete', it is statistically impossible to completely test a nontrivial
software project. Testing must be bolstered by up-front code reviews."

http://today.java.net/pub/a/today/2006/08/17/code-reviews.html

Recent O'Reilly Network weblogs of interest to Java developers:

Shashank Tiwari - REST for Java
http://www.oreillynet.com/onjava/blog/2006/09/rest_for_java.html

Timothy M. O'Brien - Charles Nutter Responds: "Our full-time
responsibility is a solid JRuby 1.0"
http://www.oreillynet.com/onjava/blog/2006/09/charles_nutter_responds_our_fu.html

Timothy M. O'Brien - Sun hires JRuby Developers (to focus on developer tools?)
http://www.oreillynet.com/onjava/blog/2006/09/sun_hires_jruby_developers.html

Robert Cooper - I don't care how big the JRE is
http://www.oreillynet.com/onjava/blog/2006/09/i_dont_care_how_big_the_jre_is.html

Check out more O'Reilly Network Java weblogs at:
http://www.oreillynet.com/onjava/blog/

Please join us again next week.

Chris Adamson, Editor
ONJava.com
cadamson@oreilly.com

==================================================================
Managed Hosting Solutions Powered by Rackspace

Need Managed Servers with 100% Uptime? By integrating top Linux and
Windows technologies with Fanatical Support(TM) customer service,
Rackspace Managed Hosting created two distinct and powerful hosting
solutions. Visit Rackspace's Dev Zone to learn more about Managed Hosting,
and to find out why Rackspace is ideal for any company running Java EE or
LAMP configurations.

Click here to learn more: http://www.onlamp.com/onlamp/zones/rackspace/

==================================================================

*** Java News and Weblogs ***

java.net Weblogs
http://weblogs.java.net/

O'Reilly Network Java Weblogs
http://www.oreillynet.com/pub/q/weblog_s?x-subject=3

Other Java News (channel -- LANG: JAVA)
http://www.oreillynet.com/meerkat/index.php

Java Cookbook Recipe of the Day
http://www.onjava.com/onjava/javacook/solution.csp?day=1

Java Events
http://www.onjava.com/onjava/events/

==================================================================
Back to School Special
Save $300 on any University of Illinois Certificate Series from O'Reilly
Learning.

- Linux/Unix System Administration Certificate Series
- Open Source Programming Certificate Series
- Web Programming Certificate Series
- .NET Programming Certificate Series

Enroll today and save $300! https://oreillylearning.com/enroll/

==================================================================

*** Other Related O'Reilly Network sites ***

O'Reilly Network
http://www.oreillynet.com

XML.com
http://xml.com/

ONLamp.com
http://onlamp.com

O'Reilly Media
http://www.oreilly.com/

O'Reilly Java
http://java.oreilly.com/

***

ONJava.com Affiliates

Servlets.com
http://www.servlets.com/

JDOM.org
http://www.jdom.org/

------------------------------------------------------------------
Visit our Sponsored Developer Resource Pages and learn about cool
stuff from our sponsors!

Downloads - Free Training - Webinars - Updates

Driver Agents Driver Updates: http://www.oreilly.com/go/driver_updates
GoToMyPC(R) Remote Access: http://www.oreillynet.com/etel/citrix/
Inside Lightroom: http://digitalmedia.oreilly.com/lightroom/
Rackspace Managed Hosting: http://www.onlamp.com/onlamp/zones/rackspace/

------------------------------------------------------------------
Interested in sponsoring the ONJava.com newsletter? Please email us
at advertising@oreilly.com for rate and availability information.
Thank you!
------------------------------------------------------------------
To change your newsletter subscription options, please visit
http://www.oreillynet.com/cs/nl/home

For assistance, email help@oreillynet.com

O'Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
(707) 827-7000
------------------------------------------------------------------


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?