This depends on your key generation strategy. See the Hibernate documentation for the various possibilities.
In Oracle it can use a sequence, if you choose to configure it that way. Straying of topic a little, using a sequence is not necessarily a good idea, since it ties you into databases that support them (or some other such mechanism). Better is to use some database agnostic algorithm (e.g. a High Low Key Generation pattern) and an assigned key.