David Goodenough on 31/03/08 11:06, wrote:
I have an application for which I would like to use OpenJPA, and it involves
the PostgreSQL tsearch(full text search) facility.
Now obviously I would not expect OpenJPA to understand or use (directly)
tsearch, so I assume that I can do the actual searches using the facility that
OpenJPA has to use real SQL.
But in order to use tsearch, I need to set up a column of type tsvector,
which is course is not something that OpenJPA can be expected to understand.
So the question is how do I tell it to ignore it, i.e. to allow it to exist
but not to try to use it.
Co-incidentally I came across a problem with an unmapped property on an entity
causing OpenJPA to grind to a halt, until I marked it as transient, but I think
this is the other side of the coin compared to your situation.
You don't actually say what you do or do not want to do with the column.
Presumably you don't have a property on your java entity for the column and you
are not mapping it?
AFAIK JPA will ignore columns that are not mapped, so you should be OK, but I
guess you're asking because it's not OK?