
EJB
文章平均质量分 83
yexianyi
Software Architect @ Siemens
Email: yexianyi@hotmail.com
Linkedin: http://cn.linkedin.com/in/yexianyi/
Github: https://github.com/yexianyi/
展开
-
org.hibernate.MappingException: Could not determine type for: java.util.Collection, for columns: [org.hibernate.mapping.Column(l
org.hibernate.MappingException: Could not determine type for: java.util.Collection, for columns: [org.hibernate.mapping.Column(lineItems)]错误解决方案 近日在运行一个EJB3 Entity实例(一对多关系)时总遇到如下异常,久试不能修原创 2008-08-25 10:39:00 · 3520 阅读 · 0 评论 -
EJB3 Exception:java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet
EJB异常:java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet当遇到如下异常时:java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet考虑是否将hibernate3.jar加入到了工程项目中原创 2009-02-13 11:03:00 · 4643 阅读 · 3 评论 -
EJB3.x:关于@UniqueConstraint标记中的columnNames属性
EJB3.x:关于@UniqueConstraint标记中的columnNames属性例如以下代码:package net.model.entity;import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Entity;import javax.pers原创 2009-01-24 10:54:00 · 1983 阅读 · 0 评论 -
EJB3.x:部署(卸载)EntityBean时自动创建(删除)表结构
EJB3.x:部署(卸载)EntityBean时自动创建(删除)表结构persistence.xml<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http:/原创 2009-01-23 17:21:00 · 1238 阅读 · 3 评论 -
EJB3.x异常:Unsuccessful: alter table ORDER add constraint FK47F8F2EFC558D0A foreign key (ORDER_USR_ID) references CUSTOMER
EJB3.x异常:Unsuccessful: alter table ORDER add constraint FK47F8F2EFC558D0A foreign key (ORDER_USR_ID) references CUSTOMER在部署Order Entity Bean时,总是出现以下异常,久思不得其解:16:57:05,453 ERROR [SchemaUpdate] Unsu原创 2009-01-24 21:20:00 · 1840 阅读 · 0 评论 -
EJB3 Exception:Collection has neither generic type or OneToMany.targetEntity() defined:
EJB3 Exception:Collection has neither generic type or OneToMany.targetEntity() defined:如出现类似以下异常:org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetE原创 2009-01-23 16:40:00 · 2483 阅读 · 0 评论 -
EJB3.x: 关于@UniqueConstraint标记无效(不起作用)问题
EJB3.x: 关于@UniqueConstraint标记无效问题在制定Entity Bean时,设置了该实体的@UniqueConstraint限制。但是对该实体Bean进行部署后,并没有在数据库表中看到对应表字段出现unique限制。这是因为@UniqueConstraint标记必须在自动生成表的情况下才起作用。即,在persistence.xml中将hibernate.hbm2ddl.a原创 2009-01-24 19:33:00 · 1976 阅读 · 1 评论 -
EJB3 Exception:identifier of an instance of net.model.entity.Role was altered from 2 to 0
EJB3 Exception:identifier of an instance of net.model.entity.Role was altered from 2 to 0 如出现类似以下异常: 21:23:05,106 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_原创 2009-01-24 10:45:00 · 2122 阅读 · 0 评论 -
EJB3 Exception:Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
EJB3 Exception:Cannot instantiate class:org.jnp.interfaces.NamingContextFactory 如出现以下异常:Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNo原创 2009-01-17 20:20:00 · 2107 阅读 · 1 评论 -
Servlet与会话Bean 之间的关系 The Relationship Between Servlet and SessionBean
Servlet与会话Bean 的之间关系 今天终于通过《EJB 3.0专家编程》得知了Servlet 与 SessionBean 之间的关系。 原来Servlet 与 SessionBean 不是一回事。HTTP会话是关联一个会话id的数据的map。当应用请求创建一个会话时,服务器生成一个新的id,返回一个HTTPSession对象,应用可以用它来存储键/值数据对。然后它使用诸原创 2008-09-12 21:39:00 · 1100 阅读 · 0 评论 -
J2EE Exception:WELD-001408 Unsatisfied dependencies for type [SelectModelFactory] with qualifiers [@
Issue:When you inject some resources using @Inject, you may encounter following exception after app deployed.Exception:Caused by: org.jboss.weld.exceptions.DeploymentException:WELD-001408 Unsa原创 2013-11-26 15:11:41 · 4707 阅读 · 0 评论