• Home
  • No converter found capable of converting from type java lang string to type autowired manytoone joincolumn com papertrue country country

No converter found capable of converting from type java lang string to type autowired manytoone joincolumn com papertrue country country

It looks like you are trying to use a String value as the argument for a @ManyToOne annotation that is expecting an object of type Country.

To fix this issue, you will need to first ensure that you have a Country object available to use. This object can be obtained by querying the database or by creating a new instance of the Country class and setting its properties.

Once you have a Country object, you can pass it as the argument to the @ManyToOne annotation.

Alternatively, if you are trying to use a String value to represent the Country, you will need to modify your code to first retrieve the Country object from the database or create a new instance of the Country class based on the provided String value. You can then pass the Country object as the argument to the @ManyToOne annotation.

It is important to note that the @ManyToOne annotation expects an object, not a String value.