[Hibernate-JIRA] Commented: (HBX-589) Null Pointer Exception while generationg code
by Dan Madoni (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-589?page=co... ]
Dan Madoni commented on HBX-589:
--------------------------------
Yes sorry, I forgot to mention that the directory already exists and had always exised, so I ignored that early on thinking it was attributable to pre-release dialog box behavior. :)
I clicked on the Browse button to select the directory and the selection changed the Output directory setting from...
C:\workspace\hibenate-tools-test\src
...to a directory that is relative to the Eclipse workspace...
\hibenate-tools-test\src
...which made the error icon go away.
I then ran the tool again and it worked! Thanks!
So, I guess that in addition to the fact that I shouldn't so easily dismiss the error icon, the real problem here was that I used a full path, but it won't work unless I have a path that is relative to my Eclipse workspace?
If this is by design, then there may be a doc bug, as the following passage appears in http://www.hibernate.org/hib_docs/tools/reference/en/html/plugins.html#d0... in describing what to specify for Output Directory:
"Path to a directory into where all output will be written by default. Be aware that existing files will be overwritten, so be sure to specify the correct directory."
I didn't see anything about a relative directory, so I apologize if I missed it. And of course, sorry for not having clicked the Browse button until you pointed out that error icon. :)
Thanks for your prompt attention!
> Null Pointer Exception while generationg code
> ---------------------------------------------
>
> Key: HBX-589
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-589
> Project: Hibernate Tools
> Type: Bug
> Versions: 3.1beta4
> Reporter: Markus Junginger
> Attachments: Neues Bild.jpg, scrnshot_launcher.jpg
>
>
> It was not possible to generate any artifacts. The given information does not explain anything.
> There should be more information about the exception - no stacktrace, etc. See attachment.
--
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-589) Null Pointer Exception while generationg code
by Dan Madoni (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-589?page=co... ]
Dan Madoni commented on HBX-589:
--------------------------------
I am using Hibernate Tools for the first time and have run into this problem. Other than the NPE in the dialog box, no information is provided on this error except for the following log entry:
!ENTRY org.hibernate.eclipse 2 30000 2006-08-14 10:16:38.720
!MESSAGE WARN Worker-30 org.hibernate.cfg.reveng.JDBCReader - Exception while trying to get indexinfo on MYSCHEMA.MYTABLE=Exception while getting index info for MYSCHEMA.MYTABLE
I am attempting to reverse engineer with a single table, and have tried this with simpler tables that have no indexes at all with precisely the same results.
I am using an Oracle 9 database. Please let me know what other information would be useful. Thanks...
> Null Pointer Exception while generationg code
> ---------------------------------------------
>
> Key: HBX-589
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-589
> Project: Hibernate Tools
> Type: Bug
> Versions: 3.1beta4
> Reporter: Markus Junginger
> Attachments: Neues Bild.jpg
>
>
> It was not possible to generate any artifacts. The given information does not explain anything.
> There should be more information about the exception - no stacktrace, etc. See attachment.
--
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: (HB-232) Custom types cannot be uses for ids with indentity and sequence generators
by Patrick Lisser (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HB-232?page=com... ]
Patrick Lisser commented on HB-232:
-----------------------------------
Is there any news on that issue (wrapping natively generated id's with custom types)?
Or any known workarounds?
by the way, I'm using Hibernate 3.1
> Custom types cannot be uses for ids with indentity and sequence generators
> --------------------------------------------------------------------------
>
> Key: HB-232
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-232
> Project: Hibernate2
> Type: Improvement
> Components: core
> Versions: 2.0rc2
> Environment: Any environment. MySql DB
> Reporter: James Lewis
> Assignee: Gavin King
> Priority: Minor
> Fix For: 2.1 beta 1
>
>
> All of my persistent objects have a custom primary key object.
> For instance, my Part object has a PartID as the key. This allows me to perform compile time type checking in my service layer.
> I was ably to create a UserType that converted the coulmn type of integer to PartID. No problem, it worked great. However, the IdentityGeneratorFactory throw an exception because my custom types return PartID.class as the return type. The IdentityGeneratorFactory's 'get' method only takes classes that are of type Integer.class, Long.class, and Short.class. The API should be changed so that the get method returns a Serializable instead of a Number, and takes a Type instead of a class. This would allow the IdentityGeneratorFactory to return the custom class type.
> What are your thoughts.
> James
--
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: (HHH-1987) Custom Fields Support for Hibernate
by Ali El Gamal (JIRA)
Custom Fields Support for Hibernate
-----------------------------------
Key: HHH-1987
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1987
Project: Hibernate3
Type: New Feature
Reporter: Ali El Gamal
Priority: Minor
Attachments: CustomFields.zip
What is it?
=======
Custom Fields Support means the ability to add custom fields to existing hibernate entities in runtime without modifying .hbm files or even recompilling the classes.
Problem Example:
=============
Assume an enterprise application that contains information about a company's customers. When the enterprise application was developed, the communication between the company and its customers was through phone calls. As the company become larger and is now making business overseas, they now have customers outside their country and some business is now done through emails. Unfortunately, the old enterprise application that the company was using doesn't support "Custom Fields" so, they had to call back the software company which has developed this application in order to request these new updates in their data model.
Scenario if "Custom Fields" was supported:
=============================
When any enterprise that is using an application that support "Custom Fields" needs to add attributes for their existing entities, they will just need to open the "Settings" page of their application and add these new fields to existing entity then they restart the application. The new fields are now ready to use!
How to Design an Application with "Custom Fields" support?
========================================
1- All Hibernate Entities that will need to have "Custom Fields" supported will need to implement an interface called "ExtensibleEntity" or they can inherit from "DefaultExtensibleEntity"
2- In hibernate configuration, you need to set the property "hibernate.hbm2ddl.auto" to "update"
3- For Hibernate Applications, use "CustomFieldsConfiguration" to build session factories.
For Spring Applications, use "SpringCustomFieldsFactoryBean" to build LocalSessionFactoryBean.
4- The UI should have pages for adding custom fields which will call the methods provided in "CustomFieldsConfiguration" or "SpringCustomFieldsFactoryBean".
Current Implementation:
=================
The current implementation enables "Custom Fields" support to hibernate or spring applications that are using hibernate for persistent.
Current Limitations:
==============
The current implementation only supports adding new custom fields of premitive types.
--
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