[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2658) The ability to have new entities created at runtime.

charbel (JIRA) noreply at atlassian.com
Thu Jun 7 10:36:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27165 ] 

charbel commented on HHH-2658:
------------------------------

In my case, several parallel clients create such entities/tables and work with them (insert/get/update/delete/...). The number of clients is unkown, so i can't  know at start time how many entities i need.

With native sql mapping, you mean manipulate sql by myself insert/select/delete by batch using directly jdbc? In that case i loose lots of hibernate functionnalities.

Whereas creating a new sessionfactory, for many reasons i found it a heavy solution to recreate a new configuration/sessionfactory, and the code would be something like "for this piece of code, use this sessionfactory, for this one, the other one..." And another thing, in my case i have a one-to-one relation, the new temporary entities pointing to other not temporary entities.

> The ability to have new entities created at runtime.
> ----------------------------------------------------
>
>                 Key: HHH-2658
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2658
>             Project: Hibernate3
>          Issue Type: New Feature
>            Reporter: charbel
>
> Sometimes we would like to create a temporary table of  a given entity, so it would be great if we can add at runtime a new entity in the session factory, a copy of a given one with just the tablename changed.
> Example:
> --------------
> sessionfactory.addEntity(already_created_entity_name,table_parameters)

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list