This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!

Fadjer One

Greenhorn
+ Follow
since Mar 14, 2006
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 Fadjer One

Hello,

You can use Criteria API instead. For example you can use the class : org.hibernate.criterion.Example

Please check this link :
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/querycriteria.html

Hi men,

This a task to create, start , launch, configure and stop an HSQLDB database. I hope this help.

10 years ago
Hi,

I tried several examples in this book, and It's ok for me. I can see tables as explained below. What's exactly your problem ?

Don't forget than you can use Eclipse WPT to run examples too. I found this easer than ant tasks.

Good luck.
Hi,


See this link : http://www.oracle.com/technology/products/ias/toplink/jpa/howto/java-se-usage.html

>> Please aslo shed somelight on how j2ee containers connect with the database : by using data source witch you declare on your JEE server.


I hope this help.
Issam Sabir.
Hi,

With JPA you can speciy two types of transactions :

1- RESSOUCE_LOCAL : available in and outside a JEE environment, and rely on the underline Data Source you use. For example you can use this type to work with database transaction.

2- JTA : for Java Transaction API it's only available in a JEE environment. This kind of transaction is more rich than the first one. You can have a transaction with different Data Source for different types. For example between a database and LDAP.

When you are in a JEE environment, the JTA is the default value. However, RESSOUCE_LOCAL is the defaut value in a SE environment.

I hope this help.
Hi,

I found the solution ! I'm working on Eclipse and the problem is caused by it !

Add these two jars to your classpath : org.eclipse.jdt.core.manipulation_1.0.0.v20060605-1400.jar
org.eclipse.jdt.core_3.2.0.v_671.jar

There are in the plungin directory of Eclipse.
Hi,

Did you resolve the problem ? I'm having the same.

Thanks in advance.
Hello,

I have a very strong problem with an HQL query and I'm looking for your precious help ;-)

My HQL query is :
select distinct articles from com.iserva.model.Article as articles
inner join articles.column as column
inner join articles.state as state
where
articles.language =:language
and articles.state.stepId =:stepId
and articles.state.status =:status
and articles.column =:column

The SQL Equivalent generated by Hibernate is :
select distinct ... article fields ... from ARTICLE article0_ inner join `COLUMN` column1_ on article0_.COLUMN_ID=column1_.COLUMN_ID inner join OS_CURRENTSTEP state2_ on article0_.WORKFLOW_ID=state2_.entry_id where (article0_.LANGUAGE=? )and(state2_.step_Id=? )and(state2_.status=? )and(column1_.COLUMN_ID=? )

The problem is taht the SQL query return the good results, but not the HQL one !

I have used the P6Spy framework to obtain the exact query the Hibernate motor launches (query with all values not '?' chars) and I still having the same problem : SQL is good not the HQL one

Whant does hibernate do after executing like my SQL query ? any idea please ?

After many searching hours I have found this alternative that works fine, the difference is that I do no join on Column object :

select distinct articles from com.iserva.model.Article as articles
inner join articles.state as state
where
articles.language =:language
and articles.state.stepId =:stepId
and articles.state.status =:status
and articles.column =:column

Why this work and not the first one ?

Thanks in advance.
Hello every body,

I confirm that eplanetlabs 'books' are a big and a great lie !! dont buy their products !!! [ -EDIT by mw: Removed suggestion to violate copyright laws.- ]

Good lack for your all,

(eplanetlabs into hell)

Originally posted by Gert Gerritse:
Dear all,

I have just started preparing for the SCJA exam. Lacking a study guide,
I picked up a lot of various material based on the tips I found in this
group and the Yahoo one. Although I didn't trust the omnipresent Steve William, I downloaded the EPlanetLabs SCJA Solution Guide. The $ 29 I thus spent were a total waste of money: the guide is a copy-paste collection of things that somehow, somewhere might be connected with Java. My warm advice: DON'T buy this crap.

Cheers...Gert.


[ August 28, 2006: Message edited by: marc weber ]
14 years ago