[Java] [Error] Could not determine type for: java.util.List, at table: xxx, for columns

SC Tuan
1 min readSep 23, 2020

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 ...;
}

--

--

SC Tuan

iOS developer(Obj-C & Swift) / Web developer (Java, Javascript, CSS,HTML)