Could not read mappings from resource:com/sooyie/hibernate/o

garymakiyo2022-10-04 11:39:541条回答

Could not read mappings from resource:com/sooyie/hibernate/orm/Admin.hbm.xml
%%%% Error Creating SessionFactory %%%%
org.hibernate.MappingException:Could not read mappings from resource:com/sooyie/hibernate/orm/Admin.hbm.xml
Caused by:org.hibernate.DuplicateMappingException:Duplicate class/entity mapping com.sooyie.hibernate.orm.Admin
tomcat 启动后报错 报的两个错很郁闷 请教具体原因
HIBERNATE.CFG.XML配置文件中 导入的实体类的映射文件确定是正确的 因为该项目在其他机子上部署是没问题的
实体类配置文件中的类和属性这些映射也都正确
Admin 实体也未重复定义 这些问题我在提问之前都检查过了的
不过现在问题已经解决了 我换了个版本的tomcat 重新部署 具体原因还是没找见!

已提交,审核后显示!提交回复

共1条回复
chen9201 共回答了26个问题 | 采纳率92.3%
你首先查下你的HIBERNATE.CFG.XML配置文件中 导入的实体类的映射文件是否正确配置好了
再检查实体类配置文件中的类和属性这些映射是否配置正确
你报的这个错是重复定义了实体类com.sooyie.hibernate.orm.Admin
1年前

相关推荐

regolith-landform mapping
石小花1年前1
胆剑 共回答了14个问题 | 采纳率85.7%
egolith-landform mapping
==【风化层地貌绘图】
下面这段代码看不懂,求大神赐教public ActionForward save(ActionMapping mappi
下面这段代码看不懂,求大神赐教
public ActionForward save(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception
{
try
{
DynaActionForm dynForm = (DynaActionForm) form;
ArtModel artModel = new ArtModel();
BeanUtils.copyProperties(artModel, form);
int artId = 0;
String pageIds = dynForm.getString("pageIds");
String[] pageId = pageIds.split(",");
int pageNum = Integer.parseInt(dynForm.getString("pageNum"));
List pageList = new ArrayList();
for (int i = 1; i i
&& null != pageId[i - 1] && !"".equals(pageId[i - 1]))
{
page.setId(Long.parseLong(pageId[i - 1]));
}
pageList.add(page);
}
artModel.setPageList(pageList);
// 文章页面数清零
dynForm.set("pageNum", "0");
// 编辑保存
if (null != artModel.getShowArtId()
&& !"".equals(artModel.getShowArtId()))
{
String magaId = artModel.getMagaId();
String colId = artModel.getColId();
String artShowId = artModel.getShowArtId();
logger.info("edit article magaId = " + magaId + " colId ="
+ colId + " artShowId = " + artShowId);
Article article = new Article();
article.setId(Integer.valueOf(artShowId));
article.setName(artModel.getShowArtName());
article.setMagazineId(Integer.valueOf(magaId));
article.setColumnId(Integer.valueOf(colId));
ArticleDao.getInstance().updateArticle(article);
Magazine magazine = MagaDao.getInstance().getMagaById(magaId);
// PageDao.getInstance().delPageByArtId(artModel.getShowArtId());
// FileOpreration.delAllFile(magazine.getMagazineURL()
// + Constant.SLASH + artId);
int id = Integer.valueOf(magaId);
String str = Constant.FILE_PATH + Constant.SLASH + id;
忧天下之心1年前1
一天注册三 共回答了16个问题 | 采纳率87.5%
Dim record_Num As Integer
'变量 存储的记录条数
Private Sub Command1_Click()
Unload Me
'单击此命令按钮则关闭当前窗口
End Sub
Private Sub Form_Activate()
Dim i As Integer,filenum As Integer
If Dir(App.Path & "data.dat") = "" Or FileLen(App.Path & "data.dat") = 0 Then
'如果当前程序所在目录下不存在名为data.dat的数据文件或者该文件大小为0字节则
MsgBox "没有数据可以浏览!",vbOKOnly + vbInformation,"错误"
'弹出一个对话框提示没有数据可以浏览
Unload Me
'然后退出程序
End If
filenum = FreeFile
'得到一个空闲的文件号
Open App.Path & "data.dat" For Random As #filenum Len = Len(Nod)
'用这个文件号以随机的方式打开当前程序所在目录下的data.dat文件,每次读取的长度为一个Nod的长度
record_Num = LOF(filenum) / Len(Nod)
'计算记录的总条数=文件大小/一条记录的长度
While Not EOF(filenum)
'如果文件没有读取到最后则执行如下操作
Get #filenum,,Nod
'从文件中读取一条记录
Text1 = Text1.Text & vbCrLf & Trim(Nod.Name) & " " & Trim(Nod.Phone) & " " & Trim(Nod.Email) & " " & Trim(Nod.Addr)
'将读取到的记录添加到text1中的一个新行中,记录的各个属性中间用几个空格隔开
Wend
'循环结束后关闭文件
Close #filenums
Label1.Caption = "总记录数:" & record_Num
'Label1中显示记录总条数
End Su
There is no specific mapping between A and B.请问大家,这里的mapping
There is no specific mapping between A and B.请问大家,这里的mapping怎么解释?
嘟嘟不可爱1年前4
cvksaodifpuasodi 共回答了23个问题 | 采纳率87%
A和B并没有特别的映射关系
英语翻译1、if there is a mapping of the natural numbers onto a se
英语翻译
1、if there is a mapping of the natural numbers onto a set u(not necessarily one-to-one),then u is either finite or countable.
2、the existential-universal implies the universal-existential but not vice versa; the universal-existential is equivalent to asserting the existence of a function from the domain of the universally quantified variable to the domain of the existentially quantified variable.
难道我是1年前1
derline 共回答了15个问题 | 采纳率93.3%
设有一个自然数集映射到一个集合U(不必是一一对映的)上,那么U要么是有限的,或者是可数的.
existential-universal的意思是universal-existential而不是相反,universal-existential等价于存在函数,其值域从universally quantified variable到existentially quantified variable
数学翻译啊,那几个专有名词不清楚对应哪个.
mapping the world of harry potter是什么意思
冰淇淋xwt1年前4
单洛 共回答了14个问题 | 采纳率85.7%
楼上的机器翻译,自己念一念通不通
直译是“绘制出哈利波特世界的地图”
但是其实就是表示对这个魔法世界做深入了解并同时记录(甚至搭建一个虚拟的) 的意思
如果还有什么问题可以找我~
英语翻译Mapping—The mechanism by which virtual addresses are tra
英语翻译
Mapping—The mechanism by which virtual addresses are translated into
physical ones (very similar to cache mapping)
seven_Itch1年前1
xiaolanhbw 共回答了15个问题 | 采纳率66.7%
映射——虚拟地址被编译为物理地址的一种机制(与缓存映射非常相似)
英语翻译Analyze的时候报出的错误,最好能教教我怎么修改~The mapping of Load/BC "fix"
英语翻译
Analyze的时候报出的错误,最好能教教我怎么修改~
The mapping of Load/BC "fix" to FEM has found nodes close to geometry Solid 12.149 that are associated to adjacent geometry.The application automatically included 0 of these nodes,that were found within the Global Model Tolerance (currently 0.005).Use the Geometry Show-Surface-Nodes tool for verifying which nodes are associated,and adjusting the Global Model Tolerance if necessary.This check may be disabled from the Preferences/Finite Element form.
伤心总是难免的1年前1
canayi 共回答了16个问题 | 采纳率62.5%
翻译软件:负荷的映射/年“修复”,以有限元分析发现节点接近几何固体12.149是关联到相邻的几何形状.该应用程序自动纳入这些节点0,这是全球范围内的示范性发现(目前0.005).用于验证的节点相关联的几何显示,表面节点...
Linear MappingLet V be an n dimensional vector space with ba
Linear Mapping
Let V be an n dimensional vector space with basis B.
Let S be the vector space of all linear operators L: V->V.
Define T: S->M(n,n) by T(L)=[L]_B.
Prove that T is linear.
只有英语的.小弟不知道中文怎么说.
各位大神,这道题怎么做?中文英文都可以.
给各思路也行.
谢谢了!
延吉小金1年前2
示范区 共回答了16个问题 | 采纳率75%
我想[L]_B表示线性变换L在基B下的矩阵吧
任取L1,L2∈S,k≠0
T(L1+L2)=[L1+L2]_B=[L1]_B+[L2]_B
T(kL1)=[kL1]_B=k[L1]_B
所以T是线性的
org.hibernate.mappingException:Could not read mappings from
org.hibernate.mappingException:Could not read mappings from resource:
帮帮忙看都是那方面错了
挺起自己的脊梁1年前1
2277959yrn 共回答了16个问题 | 采纳率81.3%
那是由于你的hibernate.cfg.xml中指定的映射文件存在语法错误
以Customer.hbm.xml为例仔细检查一下文件
the global specifying the mapping between the global schema
the global
specifying the mapping between the global schema and the sources,
dserena1年前1
静静11510 共回答了24个问题 | 采纳率91.7%
the Global Schema
网络释义
the Global Schema:全局模式
keyboard mapping是什么意思
tjdangdang1年前1
yunlongquan 共回答了17个问题 | 采纳率88.2%
keyboard mapping
键盘映射
英语翻译Although genetic linkage and association mapping are bas
英语翻译
Although genetic linkage and association mapping are based on the same underlying phenomenon — namely,
recombination — in practice these approaches have different characteristics for localizing trait loci,each with particular
advantages and disadvantages.
In linkage analysis,recombination events are directly observed (or inferred) in a family pedigree within a limited number
of generations,whereas in association analysis we make use of the consequences of non-recombination over many past
generations within a short interval surrounding a disease locus.Importantly,the difference between the two approaches
often leads to the identification of different classes of disease-related genetic variants.These differences could provide at
least a partial explanation for the often poor correspondence between the susceptibility loci identified in genetic linkage
and genome-wide association studies.
The table compares linkage analysis,represented here by an affected sibling pair (sib-pair) with one parent
heterozygous at a specific marker,and genetic association analysis,represented by a trio family with one affected
offspring and a heterozygous parent.In affected sib-pairs,what is estimated is the proportion of pairs sharing an allele
that is identical by descent; that is,as copies of one parental allele,where the identity of the shared allele is irrelevant.
The sharing proportion is a simple inverse function of the recombination fraction:high sharing proportion corresponds
to a small recombination fraction,which in turn points to genetic linkage.In trio families,the estimated quantity is the
proportion of affected offspring inheriting a specific marker allele:an excess of over 50% is indicative of association.
海豚依赖海洋1年前2
jonesvsjack 共回答了13个问题 | 采纳率84.6%
虽然遗传连锁和关联映射是基于相同的潜在的现象- - -也就是说,
在实践中这些方法重组-有不同的特点,为本地化性状定位,每一个都有特定的
的优点和缺点.
在连锁分析、重组事件被直接观察到(或推测)在一个家庭在有限的数目.血统
后代,而在我们利用关联分析的结果在许多non-recombination过去
在很短的间隔代周围疾病位置.重要的是,这两种方法之间的差别
经常导致识别不同种类的疾病相关的基因变体.这些差异可以提供
至少部分原因不佳的对应关系确定在易感基因遗传连锁
和基因组相关研究.
这个表对比连锁分析、代表在受到影响的同胞对(sib-pair)与一个“父类”
在一个特定的杂合标记和基因关联分析,所代表的家庭和一个三的影响
一个杂合的后裔和父母.在感染sib-pairs,什么是估计的比例共享是对一个基因等位体
相同的血统,也就是说,作为一个父母等位基因的副本,那里的身份的共享等位基因是无关紧要的.
分享是一个简单的逆函数比例的重组率:高分享比例相对应
一个小重组率,从而指出遗传连锁.在三人组的家庭,估计量
比例的后代继承一个特定影响标记等位基因:一个超过50%以上的象征的协会
keyboard mapping是什么意思
昙花烽烟1年前1
娘们陪客开价倒贴 共回答了23个问题 | 采纳率73.9%
键盤对应
支持快捷键自订功能
选择正确的键盤类型