I was shown a way to parse some data from a database to an entity. I was given this good wrapper class

```
public class ObjectWrapper implements Wrapper{
   private Object wrappedObject;
//...
public static Wrapper wrap(ResultSet rs, int column, int columnType) throws SQLException {        
        if (columnType == 0) {
            return new EmptyListExceptionWrapper();
        } else {
            return new ObjectWrapper(rs.getObject(column));
        }
    }
}

```

When I try to use it in order to parse those objects, I get the names like `databaseConnection.ObjectWrapper@5010be6` and not as they really are. Another good fellow told me that I have to override `toString()` method inside `ObjectWrapper` class in order to get the real results.

How am I supposed to do that? I know that those primitive types cannot be added or changed. For example, should I do something like that below?

```
 public static String toString(){
     String str = new String();
     return str += wrappedObject;
 }

```