小编Ngu*_*aga的帖子

如何在JPA 2实体中映射postgresql"timestamp with time zone"

我有一个JPA 2应用程序(使用Hibernate 3.6作为JPA实现)使用Postgresql(使用9.0-801.jdbc3 JDBC驱动程序).

我无法将"timestamp with time zone"字段映射到我的JPA实体.

这是一个例子:

CREATE TABLE theme
(
  id serial NOT NULL,
  # Fields that are not material to the question have been edited out
  run_from timestamp with time zone NOT NULL,
  run_to timestamp with time zone NOT NULL,
  CONSTRAINT theme_pkey PRIMARY KEY (id ),
  CONSTRAINT theme_name_key UNIQUE (name )
)
Run Code Online (Sandbox Code Playgroud)

我试图映射如下:

@Entity
@Table(schema = "content", name = "theme")
public class Theme extends AbstractBaseEntity {
    private static final long serialVersionUID = 1L;

    @Column(name = "run_from") …
Run Code Online (Sandbox Code Playgroud)

postgresql hibernate jpa jpa-2.0

28
推荐指数
2
解决办法
3万
查看次数

在存在单独的接收器和收发器绑定的情况下,Kannel中的DLR路由故障

我有一个具有多个SMPP绑定的Kannel网关(一个运营商需要单独的发送器和接收器绑定,而另一个允许收发器绑定).收发器绑定不显示此问题,因此我不会深入研究这些问题.

在单独的接收器/发送器绑定场景中,大多数(但不是全部)DLR失败,"获得DLR但无法找到消息或对其不感兴趣",如下面的日志文件摘录所示:(已经完成了一些简单的匿名化) )

2011-10-28 08:41:24 [6182] [9] DEBUG: SMPP[tx_bind]: Sending PDU:
2011-10-28 08:41:24 [6182] [9] DEBUG: SMPP PDU 0x12d76c0 dump:
2011-10-28 08:41:24 [6182] [9] DEBUG:   type_name: submit_sm
2011-10-28 08:41:24 [6182] [9] DEBUG:   command_id: 4 = 0x00000004
2011-10-28 08:41:24 [6182] [9] DEBUG:   command_status: 0 = 0x00000000
2011-10-28 08:41:24 [6182] [9] DEBUG:   sequence_number: 108 = 0x0000006c
2011-10-28 08:41:24 [6182] [9] DEBUG:   service_type: "SHORT_CODE_REMOVED"
2011-10-28 08:41:24 [6182] [9] DEBUG:   source_addr_ton: 0 = 0x00000000
2011-10-28 08:41:24 [6182] [9] DEBUG:   source_addr_npi: 1 = 0x00000001
2011-10-28 …
Run Code Online (Sandbox Code Playgroud)

sms smpp kannel sms-gateway

5
推荐指数
1
解决办法
4989
查看次数

标签 统计

hibernate ×1

jpa ×1

jpa-2.0 ×1

kannel ×1

postgresql ×1

smpp ×1

sms ×1

sms-gateway ×1