Howto configure the JPA facet?
This is my persistence.xml:
org.hibernate.ejb.HibernatePersistence
]]>
I don't know if this is an efficient way to define a persistence unit (I copied this definition from Seam). I used another persistence unit definition (maybe copied from Spring) and it worked fine too.
Attached is the JPA configuration screen. I don't know how to specify the data source for the demoDatabase persistence unit. I think that's the reason there's an error "Cannot resolve table 'geoarea'" for this class:
@Entity
@Table(name = "geoarea")
public class GeoArea {
@Id
private Long zipCode;
@Column(nullable = false, length = 32)
private String city;
How can I solve this problem? (without removing the JPA facet :) )
Attachment(s):
JPA-Facet.png
请先登录再写评论。
DataSources can be configured in Tools/Data Sources.
DS-Unit mapping is defined in facet configuration or using QuickFix
available at the highlighted table/column.
Gregory Shrago
Thai Dang Vu wrote: