在Java中合并行属性? [英] Combine rows property in java?

查看:58
本文介绍了在Java中合并行属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个问题,我试图合并行以使其看起来像下面的架构.截至目前,我的json返回的是三个对象,而不是返回一个对象.

I am coming to an issue where I am trying to combine rows to look like my schema below. As of now, my json is returning three objects instead of returning one object.

推荐答案

如果表中没有这3个属性中的每一个列,则应将它们设置为瞬态:

If you don't have a column for each of theses 3 attributes in the table, you should make them transient:

@Transient
public String Hourly;
@Transient
public String Biweekly;
@Transient
public String Annual;

这篇关于在Java中合并行属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆