-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JPA mapping PostreSQL object-relational data-types
PostPosted: Tue Aug 26, 2014 2:33 pm 
Newbie

Joined: Tue Aug 26, 2014 2:24 pm
Posts: 1
I have to map a data type created in PostgreSQL, but in hibernate documentation found nothing related. It is a type created in the PostgreSQL object-relational database. Has anyone managed to do this kind of mapping? Is it possible? Below is the SQL of the data type and table. Any help will be appreciated.

Code:
CREATE TYPE tp_data AS (
   value_integer integer,
   value_double double precision,
   value_text character varying(100),
   value_date date,
   value_time time without time zone
);

CREATE TABLE cultivar_variable (
    cultivar integer NOT NULL,
    variable integer NOT NULL,
    data_type character(1) NOT NULL,
    data_value tp_data NOT NULL
);


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.