Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Barbalace Daniela
Mapping the postgresql type bytea in the ServiceBuilder
17. April 2012 07:32
Antwort

Barbalace Daniela

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 12. Januar 2012

Neue Beiträge

Hi all,

I'm trying to use Liferay with an existing schema (using postgresql as database). As explained in the documentation, I used ServiceBuilder in order to interface Liferay with the existing tables.
One of the column types of one table is an array of bytes. I read that Service Builder does not implement this type but in these cases you must use a string to map the field. So for example, if x is the name of the column whose type is bytea, then I'll have in the Service Builder:

1
2<column name="X" db-name="x" type="String" />


However, in this way the issue is that when I try to do an update, or insert a new row in the table I get this Exception:

1
2[JDBCExceptionReporter:101] ERROR: column "x" is of type bytea but expression is of type character varying


Any help will be appreciated.
Thanks in advance

Regards
Barbalace Daniela
RE: Mapping the postgresql type bytea in the ServiceBuilder
19. April 2012 02:05
Antwort

Barbalace Daniela

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 12. Januar 2012

Neue Beiträge

Anybody?