2 qq 35561866 qq_35561866 于 2017.01.03 20:50 提问

public final static HibernateFieldProperty Id

public final static HibernateFieldProperty Id = HibernateFieldProperty.forName("id");请问这行代码什么意思?????
@Entity 这个注解表示什么

3个回答

caozhy
caozhy   Ds   Rxr 2017.01.03 22:37

@Entity表示这是一个实体类
HibernateFieldProperty.forName("id"); id字段映射到id属性

bdmh
bdmh   Ds   Rxr 2017.01.03 20:57

映射到数据库中id字段

JE_GE
JE_GE   2017.01.03 21:25

@Entity:将领域对象标注为一个实体,默认情况下类名为表名,通过@Table(name = “t_user”)可以重新指定。
http://blog.csdn.net/je_ge/article/details/53493352

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
88个Android应用程序.zip
public final class R { public static final class attr { } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int editText=0x7f050002; public static final int getBtn=0x7f050000; public static final int postBtn=0x7f050001; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040001; public static final int hello=0x7f040000; } }
关于Android新手应该先了解的知识
Android初学者需知(笔者是新手) 关于Android环境的搭建、安装和配置,笔者就不再多说了这些网上、书上众多都可找到。(现在有了一个Android Studio软件,是一款专门为Android应用开发的开发工具,不过现在是初学阶段笔者觉得不适合去使用,毕竟工具刚出来和初学阶段书籍上的工具差别较大,不可能边学知识边研究工具吧)   不管做什么工作,都必须先熟知自己有什么资源,需要用到什
个人记账管理,毕业设计代码
我的毕业设计,安卓记账管理源代码。 // 데이터베이스이름과 테블이름들을 정의 private static final String DATABASE_NAME = "MoneyManagerDB"; private static final int DATABASE_VERSION = 2; private static final String DATABASE_SETTING_TABLE = "SettingTbl"; private static final String DATABASE_BADGET_TABLE = "BadgetTbl"; private static final String DATABASE_PAYMENT_TABLE = "PaymentTbl"; // 테블안의 항목들을 정의 public static final String KEY_SETTINGTBL_ID = "ID"; public static final String KEY_SETTINGTBL_NAME = "Name"; public static final String KEY_SETTINGTBL_VALUE = "Value"; public static final String KEY_BADGETTBL_ID = "ID"; public static final String KEY_BADGETTBL_ITEM = "Item"; public static final String KEY_BADGETTBL_MONEY = "Money"; public static final String KEY_PAYMENTTBL_ID = "ID";
关于Java中public static final int 用法的解答
public class FinalOriginalTest {       private final int a;       private String name;       public FinalOriginalTest(){           a = 3;        }       public FinalOriginalTest(String name){  
基于ZXing的二维码解码例程(源代码分享).rar
基于ZXing的二维码解码例程(源代码分享).rar 可以解QR码,PDF417码,DATAMatrix,等二维码。 需要相机支持自动对焦。 public static final AZTEC, public static final CODABAR, public static final CODE_39, public static final CODE_93, public static final CODE_128, public static final DATA_MATRIX, public static final EAN_8, public static final EAN_13, public static final ITF, public static final MAXICODE, public static final PDF_417, public static final QR_CODE, public static final RSS_14, public static final RSS_EXPANDED, public static final UPC_A, public static final UPC_E, public static final UPC_EAN_EXTENSION;
java中final关键字的使用及static final 和final的区别
javastring优化 java中final关键字可以用在类成员(是不是所谓的域),类的方法及类中。 一、final用在域中表示: 1,一个永不改变的编译时常量。 2,一个在运行时被初始化的值,而你不希望它被改变。 static 关键字可以和final关键字结合使用,static强调只有一份,不管类被初始化多少次,static修饰的成员只初始化一次。final表示常量,不可改变
android开发程序
public final class R { public static final class attr { } public static final class color { public static final int blue=0x7f040001; public static final int btb=0x7f040009; public static final int green=0x7f040006; public static final int hese=0x7f040008; public static final int lightblue=0x7f040004; public static final int lightpink=0x7f040002; public static final int pink=0x7f040000; public static final int purple=0x7f040005; public static final int white=0x7f040007; public static final int yellow=0x7f040003; }
ANDROID 黑白棋
ANDROID黑白棋的代碼 /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.game.blackwhite; public final class R { public static final class attr { } public static final class drawable { public static final int black=0x7f020000; public static final int empty=0x7f020001; public static final int icon=0x7f020002; public static final int white=0x7f020003; } public static final class id { public static final int View01=0x7f050001; public static final int text=0x7f050000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040001; public static final int hello=0x7f040000; public static final int my_turn=0x7f040003; public static final int thinking=0x7f040004; public static final int your_turn=0x7f040002; } }
学员信息管理系统
package com.jbit.util; /** * 常量列表 * @author xu.sun * */ public class SysConstants { public static final String SYS_PROPERTYNAME = "sys.properties"; public static final String SYS_LISTENERPORT = "PORT"; public static final String SYS_HOSTNAME = "HOST"; public static final String SYS_SUCCESS = "SUCCESS"; public static final String SYS_ERROR = "ERROR"; public static final String SYS_LOGIN = "LOGIN"; public static final String SYS_FIND = "FIND"; public static final String SYS_UPDATE = "UPDATE"; public static final String SYS_DELETE = "DELETE"; }
人民币大写转换
package com.join.commons.utils; import java.text.NumberFormat; import java.util.HashMap; @SuppressWarnings("unchecked") public class MoneyFormat { public static final String EMPTY = ""; public static final String ZERO = "零"; public static final String ONE = "壹"; public static final String TWO = "贰"; public static final String THREE = "叁"; public static final String FOUR = "肆"; public static final String FIVE = "伍"; public static final String SIX = "陆"; public static final String SEVEN = "柒"; public static final String EIGHT = "捌"; public static final String NINE = "玖"; public static final String TEN = "拾"; public static final String HUNDRED = "佰"; public static final String THOUSAND = "仟"; public static final String TEN_THOUSAND = "万"; public static final String HUNDRED_MILLION = "亿"; public static final String YUAN = "元"; public static final String JIAO = "角"; public static final String FEN = "分"; public static final String DOT = "."; private static MoneyFormat formatter = null; private HashMap chineseNumberMap = new HashMap(); private HashMap chineseMoneyPattern = new HashMap(); private NumberFormat numberFormat = NumberFormat.getInstance();