how can I import the following package:
org.hibernate.type.StringType
in Scala? If I do:
import org.hibernate.type.StringType
“type” is recognized as a keyword. This is the second time I have run into this in two days. My last solution was the change my (Java) package name. This is no longer a valid solution!
Here is the message from Scala IDE:
<error> is not a member of org{org.type}.hibernate{org.hibernate.type}
Wrap the keyword with backquotes:
This trick also works when calling methods, which names are keywords in Scala.