`
cavonchen
  • 浏览: 205905 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

an association from the table refers to an unmapped class:java.util.set

    博客分类:
  • java
阅读更多

做实验,做着做着出现这个错误,上网搜了一通,发现自己还真傻。。。

         1。检查你的hibernate.cfg.xml文件中是否添加了

              <mapping resource="xxxx.hbm.xml"/>

         2。检查你的hibernate.cfg.xml文件中的相关联的两个<mapping resource=""/>的顺序,可能有其中一个需要引用另一个,但是另一个却还没有编译,就是说被用作外键的表要放在前面

         3。也是最愚蠢的一个(本人目前犯的错误),检查你的CodeAssetSecretLevel.hbm.xml文件名是否正确

 

厉害的是,我的问题原因都不是这些,而是person对address的多对一关系中,我竟然在person类中写成了

Set<Address> addresses = new HashSet<Address>();

搞半天,我才觉悟我这样是写成了person对address的一对多关系了啊。。。改回

Address address ;就行了。。。

糊里糊涂,写错了,害我查到半死。。。。

0
0
分享到:
评论

相关推荐

    解决docker报错The push refers to a repository_docker load

    解决docker报错The push refers to a repository

    SSD7 选择题。Multiple-Choice

    (b) the name of the table, the names of the table's attributes, the data types of the table's attributes, the formats of the table's attributes, and the maximum number of rows that the table can have...

    Data Structures and Algorithms in Java, 5th Edition (Part 3/3)

    Book Description ∗ This newest edition examines fundamental data structures by following a consistent object–oriented ...--This text refers to an out of print or unavailable edition of this title.

    机器学习之Iris数据集

    (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are...

    Docker push报错 :denied: requested access to the resource is denied

    在排除没有登录和网络的原因:我还是报的如下错误 原因镜像的名字没有按照...The push refers to repository [docker.io/langxuhao/my_redis] cd1b418d5a74: Pushed ddf2402ca3ea: Pushed 00352274272b: Pushed a0e3c

    s3c2410测试开发程序

    2410init.o(Init) refers to 2410test.o(.text) for Main 2410test.o(.text) refers to 2410lib.o(.text) for Uart_Printf 2410test.o(.text) refers to mmu.o(.text) for MMU_Init 2410test.o(.text) refers to...

    鸢尾花数据

    where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other. --- Predicted attribute: class of iris ...

    clojure.java-time:用于Clojure的Java 8 Date-Time API

    clojure.java-time:用于Clojure的Java 8 Date-Time API

    计算机网络第六版答案

    An ISP earns its money by charging each of the the ISPs that connect to the IXP a relatively small fee, which may depend on the amount of traffic sent to or received from the IXP. 15. Google's ...

    epson-rx8130ce芯片手册+linux下的驱动程序

    "linux-3.8.x" refers to the base of the linux kernel source tree. 2. Add the following lines into the drivers/rtc/Kconfig file: config RTC_DRV_RX8130 tristate "Epson RX8130CE" help If you say yes ...

    asp.net菜单(很简单)

    showhide:function(obj, e, obj2){ //obj refers to drop down menu, obj2 refers to tab menu item mouse is currently over if (this.ie || this.firefox) this.dropmenuobj.style.left=this.dropmenuobj....

    Turbo C++ 3.0[DISK]

    - C++ 2.1 support, including the new nested class specifications, and support of C++ 3.0 templates. - Support for pre-compiled headers for substantial time savings during subsequent recompiles. ...

    Turbo C++ 3.00[DISK]

    - C++ 2.1 support, including the new nested class specifications, and support of C++ 3.0 templates. - Support for pre-compiled headers for substantial time savings during subsequent recompiles. ...

    system analysis

    In business, System Analysis and Design refers to the process of examining a business situation with the intent of improving it through better procedures and methods. System analysis and design ...

    微软内部资料-SQL性能优化3

    holds an exclusive lock at the table level, and another transaction (T2) holds an exclusive lock at the row level, each of the transactions believe they have exclusive access to the resource....

    a project model for the FreeBSD Project.7z

    The vision is “To produce the best UNIX-like operating system package possible, with due respect to the original software tools ideology as well as usability, performance and stability.” The ...

    The EM Algorithm and Extensions (2nd Edition)

    3, September 2001) --This text refers to the Hardcover edition. Book Description The EM Algorithm and Extensions remains the only single source to offer a complete and unified treatment of the ...

    MS-DOS 5.0

    file from Disk 6 to your DOS directory and the XBIOS.OV_ file from Disk 6 to your root directory. 2. Name the files DMDRVR.BIN and XBIOS.OVL. 3. Run Setup with the /u switch, as follows: setup /...

    Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java Applications (Part 1)

    They suck the user in from the outset and hang on to them with a death grip of excitement. Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications shows you how...

    Head First Java, 2nd Edition (Paperback)by Kathy Sierra (Author), Bert Bates (Author) (rar file 3 of 8)

    --This text refers to an out of print or unavailable edition of this title. Total 8 rar files. Need to download all. covered: The Java programming language for people with no Java experience, and ...

Global site tag (gtag.js) - Google Analytics