Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Ich hab eine Oracle 9i Datenbank Tabelle die PrimaryKey Spalte wird mit Hilfe einer Sequence und eines Triggers automatisch gefüllt.

Die "restlichen" Daten möchte ich mit Hilfe einer CMP Entity Bean in die Tabelle schreiben. Allerdings muss ich beim create() den PrimaryKey mitgeben.

Ich weiß aber zur Laufzeit nicht wie hoch die nächste Zahl ist.

Wie kann ich der Entity Bean mitteilen das sie den nächsten Wert der Sequence nehmen soll ?

Servus,

CMP Entity Beans sind zwar schon eine Weile her, aber Du kannst doch die Signatur der create-Methode selbst bestimmen, oder? Definiere halt eine Methode ohne PK und ermittle ihn in der ejbCreate-Implementierung selbst.

Ich hoffe, ich habe jetzt nicht vollkommenen Stuss erzählt, wie gesagt, CMP EBs sind schon ein paar Tage her. :)

Schöne Grüße,

Peter

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.