0
select part.PaId,part.PaName,part.PaPartNumber,part.PaGroup from Part as part,(select
PaId,PaGroup from Part where PaPartNumber='195-15-12750') as pa where pa.PaId=part.PaID
or pa.PaGroup=part.PaGroup
上記のhqlクエリは何ですか?このSQLクエリに相当するHQL
すべての私の名前をクラスとプロパティの名前に置き換えますが、エラーが発生します。
HQL:
Select part.ID,part.Name,part.PartNumber From Part as part,(Select par.ID,par.Group
From Part as par Where par.PartNumber Like ?) as pa Where part.ID=pa.ID or
part.Group=pa.Group
エラー:
SEVERE: line 1:73: unexpected token: (
Oct 26, 2011 7:23:01 PM org.hibernate.hql.ast.ErrorCounter reportError
SEVERE: line 1:98: unexpected token: From
unexpected token: (near line 1, column 73 [Select part.ID,part.Name,part.PartNumber
From Depot.Entity.Part as part,(Select par.ID,par.Group From Depot.Entity.Part as par
Where par.PartNumber Like ?) as pa Where part.ID=pa.ID or part.Group=pa.Group]
[Ljava.lang.StackTraceElement;@1195c2b
マッピングがない場合どのように名前を知ることができますか? – ssedano