There is no getter for property named 'update_time' in 'class com.ithema.pojo.Dept'
时间: 2023-11-19 13:16:25 浏览: 185
To add a getter for the 'update_time' property in the 'Dept' class, you can follow these steps:
1. Open the 'Dept' class file (com.ithema.pojo.Dept).
2. Add a private instance variable for the 'update_time' property, along with its appropriate data type. For example, if the property is of type 'Date', you can add:
```java
private Date update_time;
```
3. Generate a getter method for the 'update_time' property by right-clicking inside the class (in most IDEs) and selecting the option to generate getters and setters. Alternatively, you can manually create a public getter method for 'update_time'. For example:
```java
public Date getUpdate_time() {
return this.update_time;
}
```
4. Save the changes to the file.
Now you should be able to access the 'update_time' property using its getter method in instances of the 'Dept' class.
阅读全文