index « Column « JPA Q&A





1. How to create clustered index on multiple columns using hibernate    stackoverflow.com

I have 2 non clustered index, one on column A and one on column B. I want to edit the .hbm.xml file to remove these index and create one clustered index ...

2. JPA: defining an index column    stackoverflow.com

Is there a way to define index on enitity column, to improve searches performance? I saw that hibernate gives @Index and @IndexColumn, but I am looking for JPA way to do it. thanks Here ...

3. Hibernate not updating index column on reordering    forum.hibernate.org

Hi. I'm using Hibernate-JPA and I'm facing problems with the reordering of an indexed collection. This is the mapping: Code: @OneToMany(cascade={CascadeType.ALL}) @JoinColumn(name="parent_id") @IndexColumn(name="position") public List getComponents() { return components; } If I pass to EntityManager.merge() an object which some of ...

4. Question about index column.    forum.hibernate.org

Can anyone tell me what the standard is for maintaining the index column that you use for for example. I'm talking about when you have a mapped association with a List. What happens when you do a lot of deletes? Do you have to have a maintenance script to tidy it up? Or is this approach of using ...

5. Column indexes are not created    forum.hibernate.org

6. table with four indexing columns and various combinations    forum.hibernate.org

Hi, I have a project that hasn't used annotations yet, I've used hbm.xml files. I have a table with several indexing columns, and for this table I need to create four different ordered indices consisting of various combinations of these columns. How do I specify this with an annotation, if possible. I want Hibernate to create the indices for me. Andy ...

7. Column index out of range on merge    forum.hibernate.org

Newbie Joined: Fri Mar 18, 2011 9:28 am Posts: 1 Hello. I'm using Hibernate to map a legacy database with some complicated associations. I need to map a bidirectional @oneToMany association where the @onetoMany is the owner side. So I used the @JoinColumns annotation. My problem is to use Cascade on this association. When I try to save a new instance ...

8. Repeated column for index problem...    forum.hibernate.org

...

9. Upper function in indexed columns    forum.hibernate.org

Hello all... When I use LIKE in a sql statement, the Hibernate create a query like this: select from

where UPPER() LIKE "string comparison"; When the string field is an indexed field, I lost the advantages of index, since changed field is not an indexed field. Anyone can help me??? I need that DB2 work in Insensitve Case, ...





10. index is NOT updated in index column    forum.hibernate.org

Hi, I have a list collection with configuraiton as follows: I find that the index "seq" column is not updated, that is, it is always NULL when inserating an instance of CorrelationLot. I have used index column in many-to-many cases, it works fine. What is wrong with this composition one-to-many ...

11.  requires a numeric column    forum.hibernate.org

I guess you are right but it's by no means obvious (at least not to me). I thought I would get a ordered list back and since I'm implimenting that interface in my POJO beans I thought I could use that directly. Thank you for your prompt response. I wil impliment the the correct way. Best regards, -Stefan

12. Creating column indexes easily    forum.hibernate.org

Hi. I am using xdoclet to create mapping files for schema export. I have a parent persistent object containing a Set of children. I also have a complex SQL query executed through JDBC to query the table created via the Set xdoclet. I wish to have an index on one of the columns purely for the JDBC SQL query, but I ...

13. Accessing columns by name not index    forum.hibernate.org

Hibernate version: 2.1 Why is hibernate accessing the column data reference by column name? If hibernate knows all the columns, tables, and relationships... If hibernate is generating the SQL, then why is it not accessing the columns by index? EG. My case: there are 60-70 columns from a 14 table join. referencing the columns by name to generate the data classes ...

14. Multiple index in same column    forum.hibernate.org

Hello, The following is a piece of code. I need to index PNAME alone and PNAME and PID as a group... I tried with the following piece of code, there is no error, but in mysql when I checked it was not coming properly.... public class Parts extends BaseObject implements Serializable{ private int pid; private String partname; /** * @return Returns ...

15. column index    forum.hibernate.org

Isn't this snippet of my mapping file supposed to create an index? Code:

16. Adding indexes to key columns    forum.hibernate.org

Hibernate provides the index attribute to let you define additional indexes on columns. However, it does not allow you to add an index to a column where the column is a key. The essence of the schema is this: A one-to-many list association, where the parent contains a list of children: Code:





17. Defining Multiple Indexes for a given column    forum.hibernate.org

I am using Hibernate 3.2 with oracle10g and am adding a number of indexes suggested by an ADDM report. While it is quite easy to define a multiple column index within an hbm file, my problem is that I need to add a multiple column index which includes a column for which there is already a much needed index. i.e. table ...

19. index column updates problem    forum.hibernate.org

Hi all, I have an indexed collection mapped (as part of another entity) like this: Code: When the ...

20. index column not updated    forum.hibernate.org

Hello! I have a many-to-many mapping with a list. If I reorder the elements in the list the index-column (OBER_ID) is not updated but other column (UNTER_ID). HibernateStatement: update AS_BELEGUNG_GRUPPEN_HBEZ set UNTER_ID=? where OBER_ID=? and unter_id_ord=? This behavior produces "unique constraint violations" because UNTER_ID ...

21. Column index not populated?    forum.hibernate.org