[Java] [Error] Could not determine type for: java.util.List, at table: xxx, for columns
I want to make a general getter property for several objects but not a column in the database.
Bug
public List<SomeObject> getChildNodes() {
// ...
return ...;
}
After clean and build, it will report the error as the title.
Solution
Add @Trasient
annotation.
import javax.persistence.Transient@Trasient
public List<SomeObject> getChildNodes() {
// ...
return ...;
}