Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » create custom annotation(create custom annotation for mapping enumerations)
create custom annotation [message #1807054] Tue, 21 May 2019 20:29 Go to next message
luis alcantar is currently offline luis alcantarFriend
Messages: 3
Registered: May 2019
Junior Member

is it possible to create or extend a JPA annotation for mapping Enums.
for example, @Enumerated is missing a couple of features, it only allows mapping the Enum index or string(getName).

I would like to extend or create a new annotation to accept two more parameters Field and type to be able to return any field inside a specific Enum. Or give the options to start at index 1 instead of 0.

PL: java
Re: create custom annotation [message #1807226 is a reply to message #1807054] Sat, 25 May 2019 03:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31491
Registered: July 2009
Senior Member
Perhaps you should Google about JPA annotations in general. Perhaps this will help:

Ed Merks
Professional Support:
Previous Topic:Error while trying to save .java files
Next Topic:Installation question
Goto Forum:

Current Time: Wed Sep 30 06:59:01 GMT 2020

Powered by FUDForum. Page generated in 0.02484 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top