-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: missing/complex annotations,
PostPosted: Mon May 16, 2005 9:00 am 
Newbie

Joined: Thu Dec 02, 2004 6:27 am
Posts: 10
I'm porting a hibernate program to annotations. Right now the features I'm missing (using the latest beta release) are,

1) minValue not supported in sequence generation. I have a hack workaround but it is inconvenient. Are there any plans to support it? (I use postgresql)

1)
@Table(name=""),
name not getting used (in hbm2ddl) for schema export.

2)
support for maps. Are these even supported in the EJB 3.0 spec?

I can't work out the equivalent of,
* @hibernate.map cascade="all-delete-orphan" lazy="true" inverse="true"
* @hibernate.collection-key column="fk_user_id"
* @hibernate.collection-index column="id" type="long"
* @hibernate.collection-one-to-many class="net.sportplan.model.Role"

I'm not sure there is one, but I can't reasonably continue upgrading until it is as its a very useful feature of hibernate.

3)
support for custom types. This might be supported but I can't workout how. The equivalent hbm file is,

<property
name="path"
type="net.sportplan.model.hibernate.LTreeUserType"
>
<column
name="path"
index="path_idx"
sql-type="ltree"
/>
</property>

and I generate it in XDoclet using,
* @hibernate.property column="path" not-null="true" unique="true"
* type="net.sportplan.model.hibernate.LTreeUserType" outer-join="true"
* @hibernate.column name="path" index="path_idx" sql-type="ltree"


any tips/timelines on completion appreciated[/code]


Top
 Profile  
 
 Post subject: Re: missing/complex annotations,
PostPosted: Mon May 16, 2005 2:28 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
caoilte wrote:
1) minValue not supported in sequence generation. I have a hack workaround but it is inconvenient. Are there any plans to support it? (I use postgresql)

What do you mean by minValue

caoilte wrote:
1)
@Table(name=""),
name not getting used (in hbm2ddl) for schema export.

? What is the exact issue. Table names (whether default or not) are used by the SchemaExport. The unit test suite does use that.

caoilte wrote:
2)
support for maps. Are these even supported in the EJB 3.0 spec?

Not supported by EJB3 as a non useful feature to map a relational model in a domain model. Anthony is working on the Hibernate implementation.

caoilte wrote:
3)
support for custom types. This might be supported but I can't workout how. The equivalent hbm file is,

<property
name="path"
type="net.sportplan.model.hibernate.LTreeUserType"
>
<column
name="path"
index="path_idx"
sql-type="ltree"
/>
</property>

@Type

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: missing/complex annotations,
PostPosted: Mon May 16, 2005 3:05 pm 
Newbie

Joined: Thu Dec 02, 2004 6:27 am
Posts: 10
emmanuel wrote:
caoilte wrote:
1) minValue not supported in sequence generation. I have a hack workaround but it is inconvenient. Are there any plans to support it? (I use postgresql)
What do you mean by minValue


sorry, my mistake I was quoting from memory. I meant initialValue.

@javax.persistence.SequenceGenerator(
name="SEQ_STORE",
sequenceName="access_sequence",
initialValue=1000
)

caoilte wrote:
1)
@Table(name=""),
name not getting used (in hbm2ddl) for schema export.
? What is the exact issue. Table names (whether default or not) are used by the SchemaExport. The unit test suite does use that.


Oops. I sorted this one. I put @Table here but I tried to use @Entity[/i]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.