Babu Mehrunnesa

Greenhorn
+ Follow
since Dec 18, 2008
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 Babu Mehrunnesa

Hi All,

This is Babu HM. I am working on Spring with JavaConfig. So I am curious to know whether
Spring In Action 3rd edition is available as Indian edition. I searched lot of book stores in Bangalore,
didn't find it. Could you please share some info on this ?


Thanks
Babu HM
13 years ago

Hi Guys,
Yesterday I cleared SCWCD with 84% .

Thanks to HFJ and JavaRanch.

Thanks
Babu HM
14 years ago
Hi All,
I have come across the following question in "Marcus Green" Mock test

"The cookie used to automatically track Servlet and JSP sessions must be called JSESSIONID"
Need to choose a Boolean Answer : TRUE OR FALSE.

It Says the answer is "FALSE"

Could any one explain me about this

Hi Guys,
I am preparing for SCWCD (310-082). I have finished Head First Series (By K & B).
Being curious I have started looking at other book (SCWCD - David Bridgewater, dreamtech publications).
But I was bit confused, not able to answer many of the questions in this book. As it demands to memorize,
Header Types, length and so on and look like both the books are with quite different goals.

Could you pl suggest me what is that exact material to refer. Please respond ASAP,
as my exam date is close.

Thanks
Babu HM
[size=12]Hi everyone,

Am using JPA with Hibernate as provider.
Can any body tell me how to run stored procedure through JPA?
If you have any good doc pl share it.

Thanks & Regards
Babu
[/size]
Hi Sailaja,
There are few things that would have caused the exception.
1) The entity class should be annotated with @entity and it should implements serializable.
2) Or may be if you are using hibernate context files which lists all your entity classes, might
not contain this entry.

Am exclusively working with annotations. So I don't have much idea on the hbm.xml files.
With annoations if you face any problems, I'l surely help you out.
Hi All,

Am developing an application through JPA. Please take a look into the
code I have sent along with this post
. I have copied few methods into the
class, where am using javax.persistence api to save & update data to DB.

But right now my code supports only single Thread. I need to support the
multiple threads. I googled it, but did't find much. Could you guys pl help
me out in changing my code to support multiple threads.
Do I need to go for synchronization or any thing that is appropriate.
Am using application managed entityManager
We need to consider the PERFORMANCE factor .
[/color]

sailaja satya wrote:Hi,

I am having this error when I run my application..

Caused by: org.hibernate.MappingException: Unknown entity: com.iflex.fcr.entity.channel.Channel
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:514)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:66)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:862)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:781)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:774)
at com.iflex.fcr.infra.das.orm.hibernate.HibernateSessionWrapper.load(HibernateSessionWrapper.java:435)
... 21 more

I have checked for the class Channel and it is there.
Can anyone of you please help me to sort this problem?

Thanks in Advance,
Smily



Hi Sailaja,
Could you post your entity classes . So that will have a look and pin-point the problm. OR if you are using any queries on this entity,
Post that also.

Regards
Babu
Hi
Am having 3 entity classes Participant(participantId-ID),
Artifact(artifactId-ID) & Status(StatusIs-ID, readStatus).
There is a @ManyToMany relationship b/w Participant -> Artifact.
As a result in mysql DB a new join_table Participant_Artifact got created.
The structure of the Join table is

Participant_Artifact
Participant_participantId | Artifact_artifactId

My requirement is to add the read status per participantId/per ArtifactId.
i.e I need to create the ternary relationship b/w Participant_Artifact_Status. My Join Table should look like
Participant_Artifact_Status
Participant_participantId | Artifact_artifactId | Status_statusId
p1 a1 s1
p1 a2 s1
p2 a1 s2
p2 a2 s1

My Participant entity class looks like
@Entity
public class Participant implements Serializable {
@Id
private Long userId;

@ManyToMany
private List<Artifact> artifact ;

...
}
Artifact.java

@Entity
public class Artifact implements Serializable {
@Id
private Long artifactId;
...
}

Status.java
@Entity
public class Status implements Serializable {
@Id
private Long statusId
}
@ManyToMany b/w Participant -> Artifact
Could some one pl tell me How I can build ternary association b/w
Participant -> Artifact -> Status
[ December 23, 2008: Message edited by: Babu Mehrunnesa ]