I have problem in IntelliJ 12 to enable the JPQL/HQL auto completion support. Whenever I edit a query IDEA does not suggest me anything on Ctrl-Space.
I have the following plugins enabled
Lets say we have this entity.
@Entity
public class SubKonto extends PersistentEntity implements Serializable {
@OneToOne
private Hierarchieknoten hierarchieknoten;
@ManyToOne
private SchnittstellenKonfiguration schnittstellenKonfiguration;
@Column
private String kontoNummer;
}
If I write a JP Query myself I have seen that IntelliJ supports in auto completing.
"from Sub
with Ctrl-Space completes to
"from SubKonto
Then from
"from SubKonto sk where sk.k
with Ctrl-Space completes to
"from SubKonto sk where sk.kontoNummer
Can anyone give me a hint how to enable it? .
I don't think that your plugins are the issue. There are two things that you should check:
NB: A recommended but optional step is to set up a data source as well and link this to your persistence unit. You can do this in the database panel shown on the right of the screenshot. Once you have added the data source then you can right click back on your persistence unit and choose "Assign data sources..."
Your auto-completion should then be up and running (it works for me :) ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With