我确实需要根据某种条件从三个不同的表中获取数据。例如:
@Entity
class Order{
id;
type;
typeId;
@Join with boqTable to get the Boq Associated with if type == BOQ and id = typeId
@Join with customTable to get custom data associated if type == CUSTOM and id = typeId
}
我应该能够使用Order实体插入和更新子表。如何使用JPA/Hibernate..。我搜索了
使用狮身人面像2获取此错误
sphinxql: syntax error, unexpected IDENT, expecting CONST_INT or CONST_FLOAT or '-' near 'WI AND published = 1 AND sphinx_deleted = 0 LIMIT 0, 10; SHOW META'
index.html.erb
错误正被抛出在部分集合行的模板中:@posts_by_state,但相同部分的另外两个实例运行良好。国家才是它的弃儿。
posts_controller.rb
@posts_by_state =