'Basic' attribute type should not be a persistence entity/a container

在使用IDEA进行HIbernate开发时,从datasource得到的实体映射并不理想,需要手动更改。

在向实体类添加属性的Setter时,暂时会有红色tip:‘Basic‘ attribute type should not be a persistence entity

或者 ‘Basic‘ attribute type should not be a container。

然后,向hbm.xml文件添加关联关系后,那个红色tip就会消失。

'Basic' attribute type should not be a persistence entity/a container

时间: 2024-08-27 19:29:32

'Basic' attribute type should not be a persistence entity/a container的相关文章

C++ basic - numeric type conversation数值类型转换

What? 在计算中涉及不同数值类型的computation,这时候,C++会按照以下顺序进行转换 order:long double>double>float>unsigned long>long>unsigned int>int eg. (1) 1/2=0(当1和2都是int时),结果也肯定是int: (2)1.0/2=0.5(当1.0为double,2为int时),2会被转化成doubley因为double>int syntax for type conve

Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity

1.错误描写叙述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:41:17 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 usi

Hibernate3使用注解出现 javax/persistence/Entity找不到的错误

最近使用Spring3,Struts2和Hibernate3开发中,对于实体类不使用Hbmxml映射文件而使用注解. 使用Test类java运行方式可以成功,但是web环境下,启动Tomcat时报错 出现 javax/persistence/Entity找不到的错误.原因是因为缺少persistence.jar包. 在Hibernate4中有一个hibernate-jpa-2.0-api-1.0.1.Final.jar的包,加入项目中即可.

mybatis报错:A query was run and no Result Maps were found for the Mapped Statement、、Property [login_ip] not found on type [com.thinkgem.jeesite.common.permission.entity.PremissUser]问题解决

今天在做ssm项目的时候出现了: 先是出现 了错误: mybatis报错:A query was run and no Result Maps were found for the Mapped Statement 这是因为Dao.xml中的select标签中必须指定要返回的值的类型(注意:是返回值的单个类型,即如果你是返回一个List<User>的话,需要指定的是User) 具体的这种错误的解决办法见:https://www.cnblogs.com/isme-zjh/p/11757155.h

SP2-0678: Column or attribute type can not be displayed by SQL*Plus

在Oracle10g及以前版本的sqlplus中,不能直接显示blob或者bfile类型的数据: SQL> create table t(b blob); Table created. SQL> insert into t values('1'); 1 row created. SQL> select * from t; Oracle11g中,sqlplus的这个限制已经取消,可以在sqlplus中直接显示blob和bfile类型的数据: SQL> create table t(b

The parameter to the method is the basic data type

1 package method.invocation; 2 3 public class TheParameterToTheMethodIsTheBasicDataType { 4 public static void main(String[] args) { 5 int a = 10; 6 int b = 20; 7 8 System.out.println(a+" "+b); 9 10 change(a, b); 11 12 System.out.println(a+"

activiti数据库表结构全貌解析

下面本人介绍一些activiti这款开源流程设计引擎的数据库表结构,首先阐述:我们刚开始接触或者使用一个新的东西(技术)时我们首先多问一下自己几个为什么?为什么activiti在工作流程领域这么流行呢?仅仅是因为开源么?实现如此强大的流程引擎,activiti底层设计是如何进行的?activiti中依赖哪些技术等?这些可能应该是那些刚接触这个开源流程引擎产品的人应该有的疑问.我们在用开源产品的都是其实应该多问自己为什么?这样才能有所进步,不是么?兴许你一时兴起,“起笔”就把一款属于你自己的开源作

通过视图实现自定义查询&lt;持续完善中。。。&gt;

目前实现: ----普通查询路径 /viewShow/viewShow/list.htm ----Echarts查询路劲 /viewShow/viewShow/echarts.htm 1.自定义查询条件 2.自定义展示数据 3.右击数据单列 求和.求平均 4.Echarts饼图.折现图.柱状图 5.指定导出模板 传参条件: //视图名称,一般用大写,如 JX_VIEW_YGJC view_name //指定模板位置,如 E:/AppServer/sunbmp/export/JX_VIEW_YGJ

JPA persistence

Play provides a set of very useful helpers to simplify the management of your JPA entities. Note that you can still go back to the plain JPA API whenever you want. Starting the JPA entity manager Play will automatically start the Hibernate entity man