I installed hibernate(version 3.0alpha) on my WindowsXP box. I tried to use command line build eg to build examples. The database used is mysql4.1.1.
but it failed!
it says:
[java] Hibernate: select auctionite0_.id as id0_, bids1_.id as id1_, user2_
.id as id2_, auctionite0_.description as descript2_0_0_, auctionite0_.ends as en
ds0_0_, auctionite0_.condition as condition0_0_, auctionite0_.seller as seller0_
0_, auctionite0_.successfulBid as successf6_0_0_, bids1_.amount as amount1_1_, b
ids1_.`datetime` as y4_1_1_, bids1_.bidder as bidder1_1_, bids1_.item as item1_1
_, bids1_.isBuyNow as isBuyNow1_, user2_.userName as userName2_2_, user2_.`passw
ord` as y3_2_2_, user2_.email as email2_2_, user2_.firstName as firstName2_2_, u
ser2_.`initial` as y6_2_2_, user2_.lastName as lastName2_2_, bids1_.item as item
__, bids1_.id as id__ from AuctionItem auctionite0_ left outer join Bid bids1_ o
n auctionite0_.id=bids1_.item left outer join AuctionUser user2_ on bids1_.bidde
r=user2_.id order by auctionite0_.ends desc limit ?
[java] 17:23:30,578 WARN JDBCExceptionReporter:38 - SQL Error: 1064, SQLSt
ate: 42000
[java] 17:23:30,578 ERROR JDBCExceptionReporter:46 - Syntax error or access
violation message from server: "You have an error in your SQL syntax. Check th
e manual that corresponds to your MySQL server version for the right syntax to u
se near '?' at line 1"
Does anybody know what's wrong here?
Thanks!
|