In the play! tutorial,the content
field of model Post is annotated as @Lob.I tried this, and when postgres
was used as db,found that the table Post
has a column named content which has a value 133414
instead of a long string, which was the post content.The column type is shown as 'text'
where as other String fields in Entity were character varying
Suppose,I want to search for posts that contain a certain word in their content,how would I formulate the query? Will I have to remove the @Lob annotation and let postgres store the content as varchar in the content column?