Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

randy pausch

Greenhorn
+ Follow
since Jun 26, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by randy pausch

Sorry...I shud have searched before asking.

But guessing the right search query would've been a challenge though.

Thanks Ankit.
Page 284 of the K&B book states

In order to save memory, two instances of the
following wrapper objects (created through boxing), will always be == when their
primitive values are the same:

Short and Integer from -128 to 127



Why does the same rule NOT apply to values over 127 ? What is so special about the -128 to 127 (byte) range?

Sample Code:


prints "!="

while



prints "=="
Hi Martin,

I would like to be added as well.

I hope you are still accepting people since the last post was only yesterday.

11 years ago
Hi,

What are some of the places where method injection would be useful while developing a web application?

Hope some of the senior members here could answer this one...

A google search on this topic led me to Rod Johnson's blog entry discussing
the same issue in general

Blog entry

But what Iam trying to understand is the application of this method in
the context of a web application.

Also has any one here used it in their projects?

Thanks

[ July 09, 2008: Message edited by: randy pausch ]

[ July 09, 2008: Message edited by: randy pausch ]

[ July 09, 2008: Message edited by: randy pausch ]

[ July 09, 2008: Message edited by: randy pausch ]
[ July 09, 2008: Message edited by: randy pausch ]
Thanks McKenzie...

Now I see why a good understanding of UML is crucial.

This is why, I love the ranch. There's always someone who
helps.
Hi,

Iam reading this book "Java persistence with Hibernate" and trying to summarize my understanding of Hibernate association mappings.So,to my knowledge, these are the questions I would ask when writing the mapping files.

1)Is the attempt, to map one & many valued relationships between Entity classes or between Value type classes?
2)Does the class being mapped, contain a collection
3)If it does, is the collection,

-- a)A collection of value-typed instances (either JDK type or custom value types) or references to value type.
OR
b)A collection of Entity references


What other questions would I have to answer before I can proceed to write the mapping file?

Thanks
Hibernate-Newbie

[ June 26, 2008: Message edited by: randy pausch ]

[ June 26, 2008: Message edited by: randy pausch ]
[ June 26, 2008: Message edited by: randy pausch ]