Try first with I BDB - indexes and legacy trouble... (FIXED)

Hi Mark,

Mark wrote:

Hi, I'm a newbie here to try a few things on I BDB. And now I'm having
I am happy to help you with this, but I have to ask you to re - ask this question on the forum I BDB, which is...

Sorry for the mistake. Now, I know this is the place to post my doubts.

I am really interested in product I BDB. I think it's fantastic!

About my first post on "Index and legacy" I BDB, I discovered that the fix for this and in fact, he was not on the 'Index and legacy' but ' * legacy and sequence * ' because I my ' @Persistent public abstract class AbstractEntity ' with a '@PrimaryKey (sequence = "ID_SEQ") private Long id' property.

This class is completed by all my business class (employee @Entity and @Entity Department) in order to have my business classes their autoincremented PrimaryKey in the sequence.

But all of my business classes have the same name of the sequence: 'ID_SEQ' then when I start my BDB I running for the first time, I start saving 3 new items Department and the sequence of these objects star Department with "#1"and ends with #3.»

Then I continue the registration of Employee objects (here was the problem) I thought that my next sequence number might be #4, but in fact it was #101 then when I tried to save my first employee, I put the property 'managerId = null' as this employee is the Manager, then, when I tried to save my second employee who works under one (Officer) I got the following exception message:

TryingJEBDBApp DatabaseExcaption: com.sleepycat.je.ForeignConstraintException: (I 4.0.71) secondary persist #EntityStoreName #com.dmp.gamblit.persistence.BDB.store.eployee.Employee #* managerId *.
foreign key not allowed: it is not present in the foreign database
#EntityStoreName #com.dmp.gamblit.persistence.BDB.store.eployee.Employee persist

The solution:
I fixed, it will change the value managerId from "4" to "101" and it works now!

Right now, I'm trying to understand the mechanism of the sequence and the refining of the concerns about the handling of cursors...
You have any good material on these subjects, maybe a link where I can find more detailed information on these?

Thanks in advance the Mark, thank you for your attention and I'll post more doubts in the future for sure. 0)

Kind regards

Diego

Tags: Database

Similar Questions

  • Index and MATCH with several conditions

    Hi all! I hope I can explain what I'm trying to do here clearly. This is my first shot:

    In the table below "Office entry Worksheet - area 1" I am trying to insert a formula in column B which will result in an answer ' true / false ' and be used for conditional highlighting

    The first condition that must be met is that the checkbox in the table "Labor and material Checklist" column A or check, if it is not checked, then move to the next line. If the box is checked, then the following condition would need to index and match with column C of table "Office entry Worksheet - area 1" in column B. If there is a match in column C, then move to the next line of column B in the table 'labor and material Checklist '. This continues until there is a 'match', then highlight column B in the table "entry Office sheet - surface 1" in red (or something like "MISSING task")

    It is an estimate and the idea is to ensure that the Phases that are checked in the table "Labor and material Checklist" will not miss when you use the table "entry office map - zone 1".

    Thank you very much for your help!

    Tim

    Is it possible that I can download this spreadsheet file?

  • Hello! I use a PC and have problems loading my homepage of Muse. First of all, I made one with the address "nordensstjarnor" and updated several times without any problems. And once, I couldn't download on 'nordensstjarnor' any longer. Don't know why, s

    Hello! I use a PC and have problems loading my homepage of Muse. First of all, I made one with the address "nordensstjarnor" and updated several times without any problems. And once, I couldn't download on 'nordensstjarnor' any longer. Don't know why, when he got the address "nordensstjrnor". That me ok at first, but now I really need to give the first address once again, "nordensstjarnor". But when I try, the alternative of the site of ' publish on ' old isn't here. And if I try to create a new one, but with the old URL, the box turns red. What can I do?

    The reason why you cannot change nordensstjarnor.businesscatalyst.com is because a different Adobe ID is used for the publication of this site.

    t * [email protected] is used for the publication of nordensstjarnor.businesscatalyst.com

    t s. * [email protected] is used for the publication of nordensstjarnorindex.businesscatalyst.com

    You must make sure that Adobe ID is used in account publish, so that you can see a list of the websites published under this account. Go in Edition > Preferences > publish on Business Catalyst > publish with accounts

    You can pass the accounts for you can also make changes to the sites.

    Thank you

    Sanjit

  • My Abobe photoshop 4.0 is not compatible with my Windows 7 a mild wear. It was, but for some reason any won't work now. I thought it was time to try a new version of photoshop and somehow ended up with a cloud, and apparently will have to pay for access t

    My Abobe photoshop 4.0 is not compatible with my Windows 7 a mild wear. It was, but for some reason any won't work now. I thought it was time to try a new version of photoshop and some sort finished with a cloud, and apparently will have to pay for access to Photoshop elements, which is everything I wanted in the first place. Is there a way I can get out of this oblogation to $120.00 and go to Staples and buy Photoshop elements 14?

    You may have to wait until Monday because of the long holiday weekend in the United States

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Cancel https://helpx.adobe.com/creative-cloud/help/cancel-membership.html

    -or https://helpx.adobe.com/contact.html?step=ZNA_account-payment-orders_stillNeedHelp

    > finished with a cloud and apparently will have to pay to access Photoshop elements

    I don't know what you bought, but Photoshop Elements only not part of the cloud

    Also, to install or run version 4 with Win7, did you do a RIGHT click on the program and select a compatibility mode from the option list?

  • When I try to download standard acrobot his inviting with login user password and its not be downloaded.

    Hello

    When I try to download standard acrobot his inviting with login user password and its not be downloaded.

    When you (or someone) first put on your computer, you (or someone) had to choose a password. This protects your computer, and you need to install most software or change the system. We cannot help you if you forget it, sorry.

  • What happens to the existing after the partition of table index and created with local index

    Hi guys,.

    / / DESC part id name number, varchar2 (100), number of wage

    In an existing table PART I add 1 column DATASEQ MORE. I wonder the part of table based on dataseq.now, the table is created with this logic of partition

    create the part table partition (identification number, name varchar2 (100), number of salary, number DATASEQ) in list (dataseq) (values partition PART_INITIAL (1));

    Suggestionn necessary. given that the table is partitioned based on DATASEQ I wonder to add local indexes on dataseq. to dataseq, I have added a local index create index idx on share (dataseq) LOCAL; Now my question is, already, there are the existing index is the column ID and salary.

    (1) IDX for dataseq is created locally so that it will be partition on each partition on the main table. Please tell me what is happening to the index on the column ID and salary... it will create again in local?

    Please suggest

    S

    Hello

    first of all, in reality 'a partition table' means create a new table a migration of existing data it (although, theoretically, you can use dbms_redefinition to partition an existing table - however, it's just doing the same thing behind the scenes). This means that you also get to decide what to do with the index - index will be local, who will be global (you can also reassess some of existing indexes and decide that they are not really necessary).

    Second of all, the choice of the partitioning key seems weird. Partitioning is a data management technique more that anything else, in order to be eligible, you must find a good partitioning key. A column recently added, named "data_seq" is not a good candidate. Can you give us more details about this column and why it was chosen as a partitioning key?

    I suspect that the person who proposed this partitioning scheme made a huge mistake. A non-partitioned table is much better in all aspects (including the ease of management and performance) that divided one wrongly.

    Best regards

    Nikolai

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do?

    I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do? This happen after I bought some coins for a game

    You must settle the debt until you can download something else of the podcast episodes on the iTunes Store or select None as the payment option.

    (142394)

  • What reason is there to find my friends send me the mesasge 'Location not available', even though the iPhone, I'll try to find is always on and always is sharing its location with me?

    What reason is there to find my friends send me the mesasge 'Location not available', even though the iPhone, I'll try to find is always on and always is sharing its location with me?

    Hello

    If there are several device linked to the account, it's probably just that it took to give the positions of the other device or the iPhone is not connected by wifi or cellular connection.

  • Update KB937287 keep apearing as the only updated, try install many times, but does not work, tried it with the standalone version and it keeps apearing

    Update KB937287 keep apearing that the only update, tried to install a lot of times, but does not work, tried it with the standalone version and it keeps apearing, when I install it does not display an error message, just say that again was successful but when I try to look for more updated it apears again.

    Hi mayortom,

    Thank you for visiting the Microsoft answers Forum.

    You can follow the steps outlined in the article below:

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update
    http://support.Microsoft.com/kb/910339/

    I hope that helps!

    Thank you and best regards,
    Abdelouahab Microsoft responds to the technical support engineer

  • You are not connected to the internet! You want to work offline or try again? There is also a box with a red x and the message reads unplugged network cable.

    Unplugged network cable?

    Recently I get this message then on the line. You are not connected to the internet! You want to work offline or try again? There is also a box with a red x and the message reads unplugged network cable. It is very aggravating. Can someone tell me how to solve this problem? It might have something to do with my firewall? I recently downloaded mozzilla firefox if I could play words with friends, because IE would not work on the game.

    Hi LouisteanGriffin,

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Follow these steps:

    Step 1: Start the computer in safe mode with network and check if the problem persists.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Step 2: If the problem does not persist in SafeMode with network, perform a clean boot to see if there is no conflict of software like clean boot helps you eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

    Method 2: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 3: Follow the steps in the article.

    How to troubleshoot a network home in Windows XP

    Windows wireless and wired network connection problems

    For reference:

    How to reset the Protocol Internet (TCP/IP)

  • How to use transfer windows for xp to xp. When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    How to use transfer windows for xp to xp.  When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    Hello, welcome.

    The process is automatic and the maximum transfer rate should be about 20 GB/HR. If the process crashes during that long of a time, it's probably because of something internal rather something you're doing wrong.
    For reference purposes, I included this link. It goes into the details of the migration from XP to Vista (and the basic steps you follow). The instructions are for migrating to Vista via the network, but you can easily follow the steps and choose a different option for your specific installation.
    For both machines, I recommend you to prepare for the transfer using the following procedure:
    1. click on START > run
    2 type "msconfig" (without the quotes) and press enter
    3. go to the "Startup" tab and uncheck all the entries displayed
    4. click on 'Apply' at the bottom right
    DO NOT RESTART YOUR COMPUTER AGAIN
    5. click on START > run
    6. Type "cmd" (without the quotes). Right-click on the result at the top of the menu START and select 'run as administrator '.
    7. type chkdsk /r and press enter
    8 allow the system to attempt disassembly of the volume
    9. allow the system to plan restarting
    10. restart your computer
    11 let checkdisk analyze the file system on your hard drive
    12. Once completed, perform the same steps on the other machine
    13. Once completed, repeat the transfer

    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Hi, I also have a similar problem with my asus s550cm and whenever I try to access windows update window blocking, here is the link to my dmp file.

    Separated from this thread.

    Hi, I also have a similar problem with my asus s550cm and whenever I try to access windows update window blocking, here is the link to my dmp file.

    https://onedrive.live.com/redir?RESID=7D3CCE252116AC94%211981

    http://1drv.Ms/1F2ZEzq

    Thank you

    Separated from this thread.

    Hi, I also have a similar problem with my asus s550cm and whenever I try to access windows update window blocking, here is the link to my dmp file.

    https://onedrive.live.com/redir?RESID=7D3CCE252116AC94%211981

    http://1drv.Ms/1F2ZEzq

    Thank you

    Follow the steps in the link below, then try to update windows again.

    Difficulty errors of corruption of Windows by using the DISM tool / system update readiness.

    http://support.Microsoft.com/en-us/KB/947821

  • Upgrade to 8.1 fails "you must use an account with administrator privileges to install Windows 8.1." "Try loggin with the user of an administrator on this PC account and try the update again.

    Hello

    I have some difficulties to try to upgrade to windows 8... The computer asked me to go to 8.1, I click OK and it sends me to the store. Then I click on "Download Windows 8.1 Pro" and I get the message:
    "You must use an account with administrator privileges to install Windows 8.1." Try loggin with the user of an administrator on this PC account and retry the update", as shown in the attached picture.

    The thing is that I am the only administrator account.
    I also checked enable the built-in Administrator, by logging in and trying to here, but from the account built-in administrator is not aloud me to use Store.

    What can I do? Thank you

    Original title: upgrade Windows 8 Pro x 64 to Windows 8.1

    Hello

    I've read reports that uninstalling Windows Update KB2871389, and then put it back solves the problem.

    I read recently that this Fix - It might help...

    http://support.Microsoft.com/kb/971058/en-us

  • How to get rid of the offer to try CC with Lightroom and start my Lightroom 6 as usual?

    How to get rid of the offer to try CC with Lightroom and start my Lightroom 6 as usual?

    I installed Lightroom 6. There are now worked fine.

    Now when I try to open the program, it does not open.

    Instead, a window appears with an offer to try Lightroom CC.

    I don't want to try Lightroom CC as a monthly payment.

    I see not a way to get rid of this window a start my 6 Lightroom as before.

    Open as a test and check your sign in Adobe. Once you Sign In it ask for a serial number. Enter the serial number, you have to V6.

    Only then disconnect.

Maybe you are looking for

  • iMac boot and graphics board malfunction

    Some time after the latest updates my iMac early 2009 (now declared obsolete) refuses to restart. At startup, the screen showed several neatly arranged the vertical yellow lines. Arriving halfway through the loading with the Apple logo bar it will tu

  • iPhone prevent him freezing/not responding/GAL Update 9.3.1

    I have a 6 64 GB iPhone and I have a lot of memory, but as the update to 9.3.1 the phone has been delayed / screen is sometimes insensitive / and keepd gel. IV all soft/hard resets and twice more than erasd everything and reinstalled but still having

  • His office

    I have a HP Slimline computer. My distorted soundis. Looks like a 33 record rounds being played on 45 rpm (ie: the Chipmunks). Someone help me!  Thank you!

  • get a message on my mac to update itunes on my iphone

    I have an iphone 5s and I get the following message on my Mac. Impossible to use the iPhone "IPhone of Harold" because it requires a newer version of iTunes. Go to www.itunes.com to download the latest version of iTunes. I've updated the latest versi

  • Konica Minolta 2300W - cannot install drivers under Windows 7 x 64

    I tried several times to install drivers for my Konica Minolta 2300W Color Laser Printer under Win 7 x 64. The printer driver continues to fail. I studied information on the support site of Konica, and even Windows Vista drivers updated in starting y