[Hibernate-JIRA] Commented: (HBX-713) hbm2java task: meta support needed for class level annotations
by Max Rydahl Andersen (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-713?page=co... ]
Max Rydahl Andersen commented on HBX-713:
-----------------------------------------
I were only arguing that why would you ever have both hbm.xml and entity annotations for the same class at the same time ?
generating seam annotations or other annotations than entity-annotations might make sense yes.
> 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
18 years, 5 months
[Hibernate-JIRA] Commented: (HBX-713) hbm2java task: meta support needed for class level annotations
by Daniel Pocock (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-713?page=co... ]
Daniel Pocock commented on HBX-713:
-----------------------------------
Can you point me to an example? I assume you are suggesting that I should write entity bean classes by hand, but I am trying to avoid that, as writing a hbm.xml is quicker and leaves less possibilities for error.
Is there any reason why the meta attribute I have proposed shouldn't be included in Hibernate tools? Would you be happy if I submitted a patch to provide this feature?
> 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
18 years, 5 months
[Hibernate-JIRA] Created: (EJB-209) Compositekey find and delete does not work
by Rakesh Gupta (JIRA)
Compositekey find and delete does not work
------------------------------------------
Key: EJB-209
URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-209
Project: Hibernate Entity Manager
Type: Bug
Components: EntityManager
Versions: 3.2.0.cr1
Environment: hibernate core 3.2.0cr2, hibernate-annotation 3.2.0.cr1, hibernate-entitymanager3.2.0.cr1
Reporter: Rakesh Gupta
Priority: Blocker
First I am using ejb3 annotation and no XML mapping files and generated the code using jboss-eclipse IDE
I have two tables table A and Table B, Table A has single primarykey but table B has only two fields and combination of both is the primarykey also out of these two fields one has references to table A and other has a reference to some other table.
Problem;
I seach a records in table A using single primary key, based on this i gets all the records of table B in a collection, and when i try to delete a records from table be it is not deleted. I
I try to remove this from the collection and then persist it does not work. there after i try to delete directly from table B but this also does not work.
even composite key search like entitymanager.find(A.class, compositekey) is also not working.
please let me know if this is a bug or some problem
--
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
18 years, 5 months
[Hibernate-JIRA] Closed: (HHH-1278) It seems that LockAcquisitionException is never thrown out.
by Steve Ebersole (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1278?page=all ]
Steve Ebersole closed HHH-1278:
-------------------------------
Resolution: Fixed
Nope. We actually ripped out all the code that used to interpret the vendor specific error codes because that stuff is a nightmare to maintain. The core Hibernate code only ever uses the X/Open SQLState codes now to decipher the type of exception. Unfortunately, there is not a standard X/Open SQLState code relating to lock acquisition errors.
If it is that important, just plugin in a custom SQLExceptionConverter and convert check your db vendor's specific lock acquisition issue error codes.
> It seems that LockAcquisitionException is never thrown out.
> -----------------------------------------------------------
>
> Key: HHH-1278
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1278
> Project: Hibernate3
> Type: Bug
> Components: core
> Versions: 3.1
> Environment: Win, Hibernate3.1, Oracle10G
> Reporter: Dongsheng Wang
>
>
> I used to catch LockAcquisitionException to decide if I got the lock. It works. After I update hibernate from 3.0 to 3.1. It seems that LockAcquisitionException is never thrown out. Instead, an JDBCException is thrown out. I checked the source, it seems that the LockAcquisitionException's constructor is never called by anybody.
> Is it a bug or something?
--
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
18 years, 5 months