Marcus Casey

Greenhorn
+ Follow
since Feb 25, 2006
Merit badge: grant badges
For More
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 Marcus Casey

How do I remove a record from the join table in a many-to-many relationship?

I am using JPA. I have created a many-to-many relationship between users and groups. A MyUser can be in more than one MyGroup and a MyGroup can have more than one MyUser. Pretty straightforward.

Here is some of my code for MyUser:


and for MyGroup:


As you can tell from the code, I have a join table called my_user_group that just has the foreign keys from each table. (You may also notice it is unidirectional. I don't have a need to list the users by group, only the groups by user).

Now to my question--how do I remove a group from a user? I notice that if I remove a group from the List on my object and the perform a merge(), the foreign key records for the removed group are still there.

Any suggestions would be most welcome.
I'm new to JBoss, so bear with me.

I built a basic EJB and deployed it to JBoss using Ant by dropping it in the deploy directory. Now I would like to get the RMIC code so that I can build my client. Where/how can I get this code?

Thanks
18 years ago
My total recording ended up being about 1 hour and 45 minutes.

I took the 1.4 cert for several reasons:

1. When I first bought the book the Java 5 cert wasn't around.
2. All of my experience is in 1.4 and I needed to get the cert quickly (my company wants me to get the SCBCD and SCEA certs as soon as possible)
3. I am a J2EE developer and that is what we will be using for a while longer.
I didn't use online practice questions. Only Whizlabs and K&B.
The two and a half weeks was pretty intensive: about 2 hours per day on weekdays and 4-6 hours per day on weekends.

I did write a few tiny little programs (maybe 5 or 6) when I couldn't figure out why I missed a certain practice question. That would usually clear things up. I have been working as a Java developer for a little more than a year on some fairly big projects, so I had a lot of experience to draw from.

I didn't really do the K&B practice exercises. I would read them, and usually I instantly knew how to write the classes, so I wouldn't bother. I concentrated more on the practice questions.
[ March 22, 2006: Message edited by: Marcus Casey ]
Sorry, this particular digital voice recorder can't upload anything to a computer. Any tape recorder will do. Some MP3 players have the capability as well.
Here is how I studied:
I studied for about two and a half weeks.

Read K&B book: When I finished each chapter, I took the practice questions. Then I made a voice recording of myself reading the Two-Minute Drills, any particular things from the text that I wanted to remember, and anything that I learned or missed in the practice questions.

After finishing the text, I took the test on the CD and two Whizlabs tests.

The day before the exam I listened to all of my recordings as a way to review every chapter.

Hope this helps someone else develop their strategy. I have used voice recordings as a study tool for a long time. I highly recommend a digital voice recorder!

(This was moved to a new forum because I included my score in the first one.)
Here is how I studied:
I studied for about two and a half weeks.

Read K&B book: When I finished each chapter, I took the practice questions. Then I made a voice recording of myself reading the Two-Minute Drills, any particular things from the text that I wanted to remember, and anything that I learned or missed in the practice questions.

After finishing the text, I took the test on the CD and two Whizlabs tests.

The day before the exam I listened to all of my recordings as a way to review every chapter.

Hope this helps someone else develop their strategy. I have used voice recordings as a study tool for a long time. I highly recommend a digital voice recorder!
18 years ago
That makes sense--thanks!
Like Keith said. It is legal, but not appropriate. The question did not ask about its appropriateness, only about what would run. The compiler and JVM only care about legal--not about appropriate.
All I needed when I registered with Prometric online was the voucher number. Type it in and see if it will work. I don't know if a voucher from India will work in the U.S. Try it and see!
I ran across a question in the K&B SCJP 1.4 book (Chp. 8 review question 12 pp. 485-486) where an abstract outer class had an abstract inner class. Then an anonymous inner class was used to make an instance of the abstract outer class, but it didn't include an implementation of the inner class.

If inner classes work like other members of a class, why don't you have to provide an implementation of an abstract inner class if you inherit the outer class?