[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-713?page=co...
]
Daniel Pocock commented on HBX-713:
-----------------------------------
I've written a patch for this, but unable to compile Hibernate tools:
a) build.sh mentions ../hibernate-3.1, should be ../hibernate-3.2
b) The following errors are reported by the compiler, using version 10233 from SVN:
[javac]
/home/daniel/ws/hibernate/HibernateExt/ejb/src/java/org/hibernate/ejb/AbstractEntityManagerImpl.java:584:
cannot find symbol
[javac] symbol : constructor
OptimisticLockException(<nulltype>,org.hibernate.HibernateException,java.lang.Object)
[javac] location: class javax.persistence.OptimisticLockException
[javac] throwPersistenceException( new
OptimisticLockException( null, e, entity ) );
[javac] ^
[javac]
/home/daniel/ws/hibernate/HibernateExt/ejb/src/java/org/hibernate/ejb/instrument/InterceptFieldClassFileTransformer.java:23:
cannot find symbol
[javac] symbol : method
getEntityClassTransformer(<nulltype>,java.lang.String[])
[javac] location: interface org.hibernate.bytecode.BytecodeProvider
[javac] classTransformer =
Environment.getBytecodeProvider().getEntityClassTransformer(
[javac] ^
[javac] 2 errors
hbm2java task: meta support needed for class level annotations
--------------------------------------------------------------
Key: HBX-713
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-713
Project: Hibernate Tools
Type: Bug
Components: hbm2java
Versions: 3.2beta6
Environment: hibernate tools 3.2 beta 6
JBoss 4.0.4.GA with EJB3
Reporter: Daniel Pocock
Original Estimate: 1 hour
Remaining: 1 hour
We use hbm2java to create EJB3 entity beans from hbm files. It would be really useful to
use the `meta' element to insert additional class level annotations. Is someone
already working on such a feature, or should I submit a patch?
Here is an example of what I would like to do:
<meta
attribute="extra-import">org.jboss.seam.annotations.Name</meta>
<meta
attributre="class-annotation">@Name("myObject")</meta>
such that the following code would be generated:
import javax.ejb.Entity;
import org.jboss.seam.annotations.Name;
@Entity
@Name("myObject")
public class MyObject ....
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira